[Python-apps-team] Bug#541063: pylint: --enable-msg does not work

Francois Gouget fgouget at free.fr
Tue Aug 11 13:04:11 UTC 2009


Package: pylint
Version: 0.18.0-1
Severity: important


So I have a set of Python files with quite a lot of warnings which will take qute some time to fix. So for now I'd like to have make call pylint to report only errors and the warning W0611.

The obvious way to do so would be:

   pylint -e --enable-msg=W0611 ...

But that does not work. In fact it turns our that once a warning has been disabled through -e, --disable-msg-cat or --disable-msg, it cannot be reenabled, no matter what order the options are in. The disable directives always have priority.

So as is --enable-msg is completely useless and it's not possible to enable a specific message.

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages pylint depends on:
ii  python                        2.5.4-2    An interactive high-level object-o
ii  python-logilab-astng          0.19.0-2   extend Python's abstract syntax tr
ii  python-logilab-common         0.39.0-1   useful miscellaneous modules used 
ii  python-support                1.0.3      automated rebuilding support for P

Versions of packages pylint recommends:
ii  python-tk                     2.5.2-1.1  Tkinter - Writing Tk applications 

pylint suggests no packages.

-- no debconf information





More information about the Python-apps-team mailing list