Search code examples
pythonpylint

Running pylint programmatically with the function epylint.py_run


When trying to run epylint.py_run to lint a file I pass in the filename and command-line options as a string, as specified in the docs. The file gets analyzed but the command-line options I pass aren't being applied. How can I get the function to apply the options I'm passing?


Solution

  • There is a bug in epylint.Run which omit to give the options, hence your problem.

    In your case you should rather use the lint(filename, options) function, where options should be passed as a list of strings).