[Python-projects] Ignore Entire File
Alexandre Fayolle
alexandre.fayolle at logilab.fr
Fri Aug 18 09:01:02 CEST 2006
On Thu, Aug 17, 2006 at 04:22:46PM +0200, Sylvain Thénault wrote:
> > Basically I'm trying to minimise as many things as possible.
>
> so the best thing for you is probably to have a pylintrc file specific to your project, and use
> it using pylint's --rc-file option
There is some code in pylint to automagically find and use a
pylintrc file in the project tree. I remember Adrien fixing things on
this part of pylint to get it to work better in our projects, so maybe
it is broken in the currently released version.
Looking at the code in the dev branch, it looks for a file in the
current working directory, then in all the parent directories while
there is an __init__.py file in these directories. If this does not
work, in looks for the PYLINTRC environmen variable, and then in
~/.pylintrc and /etc/pylintrc.
So if you cannot ensure that pylint will be run from a specific
directory which contains the pylintrc file, a good option is to provide
a small wrapper script which exports the PYLINTRC environment variable
(or position the --rc-file option)
--
Alexandre Fayolle LOGILAB, Paris (France)
Formations Python, Zope, Plone, Debian: http://www.logilab.fr/formations
Développement logiciel sur mesure: http://www.logilab.fr/services
Informatique scientifique: http://www.logilab.fr/science
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 481 bytes
Desc: Digital signature
Url : http://lists.logilab.org/pipermail/python-projects/attachments/20060818/917819f4/attachment.pgp
More information about the Python-Projects
mailing list