Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
403 views
in Technique[技术] by (71.8m points)

python - 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 : Python26Scripts 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?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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

You can create a template using:

pylint --generate-rcfile > .pylintrc

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

56.9k users

...