Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to specify a configuration file for pylint under windows?

I am evaluating pylint as source code checker and I would like to customize the maximum number of characters on a single line.

I would like to use a configuration file. I've generated a template thanks to the --generate-rcfile command and I've made my modification.

I am trying to run pylint --rcfile=myfile.rc but I can see that my changes are not taken into account by pylint. I've tried different location for my file : \Python26\Scripts\ and pylint.d in my user folder without any success.

Does anybody know what I am doing wrong?

Is it possible to use the configration file with pylint-gui? I can't do it too?

like image 306
luc Avatar asked Sep 03 '09 09:09

luc


People also ask

Where is the Pylint config file?

config/pylintrc in your home directory. /etc/pylintrc for global configuration of machines.

Where can I find Pylintrc Windows?

On Windows 7, a . pylintrc file in your home directory (typically C:\Users\myusername) will be automatically recognized.


1 Answers

On Windows 7, a .pylintrc file in your home directory (typically C:\Users\myusername) will be automatically recognized.

You can create a template using:

pylint --generate-rcfile > .pylintrc 
like image 87
Flolagale Avatar answered Sep 21 '22 08:09

Flolagale