invoking pylint programmatically

后端 未结 7 842
难免孤独
难免孤独 2020-12-05 00:21

I\'d like to invoke the pylint checker, limited to the Error signalling part, as part of my unit testing. so I checked the pylint executable script, got to the pylint

相关标签:
7条回答
  • 2020-12-05 01:06

    Take a look at the pylint/epylint.py which contains two different ways to start pylint programatically.

    You can also simply call :

    from pylint.lint import Run
    Run(['--errors-only', 'myfile.py']) 
    

    for instance.

    0 讨论(0)
提交回复
热议问题