Configuring pylint for local conventions (was: pyflakes, pylint, pychecker - and other tools)

Jeremiah Dodds jeremiah.dodds at gmail.com
Thu Apr 23 17:11:09 CEST 2009


On Thu, Apr 23, 2009 at 2:58 PM, Ben Finney
<ben+python at benfinney.id.au<ben%2Bpython at benfinney.id.au>
> wrote:

> aahz at pythoncraft.com (Aahz) writes:
>
> > Second, you can configure pylint to respect your personal style
>
> How? I haven't seen any decent documentation on doing so.
>
> --
>  \          “When we call others dogmatic, what we really object to is |
>  `\   their holding dogmas that are different from our own.” —Charles |
> _o__)                                                           Issawi |
> Ben Finney
> --
> http://mail.python.org/mailman/listinfo/python-list


I'm fairly certain that ~/.pylint.rc is just the command line options
available to pylint made into a conf file.

See  http://flexget.com/browser/trunk/pylint.rc?rev=475 for an example.

So, for a section from pylint --help like so:

 Miscellaneous:
    --notes=<comma separated values>
                        List of note tags to take in consideration,
separated
                        by a comma. [current: FIXME,XXX,TODO]

You would make a configuration item like so:

[MISCELLANEOUS]
notes=FIXME,TODO

This is a fairly common thing for command-line app configurations.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090423/eee6f428/attachment.html>


More information about the Python-list mailing list