How to use custom pylint configuration files in Windows?

829 views
Skip to first unread message

antimatter

unread,
Aug 5, 2011, 7:39:00 AM8/5/11
to python(x,y)
Hi,
run from within Spyder, pylint uses no configuration file and thus
uses its default configuration.
I've got my own custom pylintrc file and I want pylint to use it.
Which files or settings have to be edited in order to accomplish that?
I am using Windows 7.

Best regards
Andi

antimatter

unread,
Aug 5, 2011, 1:25:50 PM8/5/11
to python(x,y)
Alright, I was missing the forest through the trees. For the archive:

In C:\...\Python26\Scripts is a file named pylint.bat that contains
this line:

python "%~dpn0" %*

I just appended the rcfile option, so it looks like that now:

python "%~dpn0" %* --rcfile="C:\path\to\my\custom_pylintrc"

Now, every use of pylint loads this config file (command line, too),
but it's fine for my purpose.
Reply all
Reply to author
Forward
0 new messages