How to specify a configuration file for pylint under windows?

后端 未结 2 1884
一个人的身影
一个人的身影 2020-12-17 08:11

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 f

2条回答
  •  孤城傲影
    2020-12-17 09:03

    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 %*
    

提交回复
热议问题