How to specify a configuration file for pylint under windows?

夙愿已清 提交于 2019-11-29 05:29:12
Flolagale

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

Since creating a file beginning with a dot is not allowed from Windows file explorer, you can create a template using:

pylint --generate-rcfile > .pylintrc

Try setting PYLINTRC env variable.

I use batch:

@echo off
set PYLINTHOME=c:\tools
set PYLINTRC=c:\etc\pylint.conf
rem c:\Python27\python.exe c:\Python27\Lib\site-packages\pylint\lint.py %1 %2 %3 %4 %5 %6 %7 %8 %9
c:\Python27\python.exe c:\Python27\Lib\site-packages\pylint\lint.py %*
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!