How to specify a configuration file for pylint under windows?

后端 未结 2 1880
一个人的身影
一个人的身影 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 08:49

    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
    
    0 讨论(0)
  • 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 %*
    
    0 讨论(0)
提交回复
热议问题