[Python-projects] pylint: Locating custom checkers

Sylvain Thénault sylvain.thenault at logilab.fr
Wed Aug 6 08:54:04 CEST 2008


On Tue, Aug 05, 2008 at 06:39:02PM +0200, Maarten ter Huurne wrote:
> Hi all,

Hi
 
> Today I have written a custom checker for pylint. I can successfully run 
> it with a command line like this:
>         PYTHONPATH=/path/to/plugin pylint --load-plugins=custom_checker 
> -rn module.py
> 
> However, I want to keep the command line short for easy interactive use. 
> To do that, I moved the load-plugins part to pylintrc. However, I couldn't 
> find anywhere in pylintrc to put the PYTHONPATH part.
> 
> Right now I solved this by using a shell alias, but I would prefer to put 
> this in pylintrc. Is that possible with the current pylint? Is it 
> reasonable to expect it to be configurable in pylintrc or would another 
> approach be better?

it is not possible with the current pylint. I don't see any better
approach than the shell alias (or having the module in some place
already in the python path). I've added a ticket for this: 

http://www.logilab.org/ticket/5697

regards,
-- 
Sylvain Thénault                               LOGILAB, Paris (France)
Formations Python, Zope, Plone, Debian:  http://www.logilab.fr/formations
Développement logiciel sur mesure:       http://www.logilab.fr/services
Python et calcul scientifique:           http://www.logilab.fr/science



More information about the Python-Projects mailing list