[code-quality] Flake8 in python script?
peter.bittner at gmx.net
Thu Oct 22 10:08:19 EDT 2015
Maybe like this?
from flake8.main import main
# taken from: https://gitlab.com/pycqa/flake8/blob/master/flake8/__main__.py
Or be inspired by `main()` and `run()` in the `flake8.main` module:
2015-10-22 12:31 GMT+02:00 Linus Törmgren <linus at etnolit.se>:
> I would like to use flake8 from within Python script but I can't find any hint in the docs on how to do this? For instance, with pylint I can do a "from pylint import epylint as lint" and then run the linter with "lint.run()".
> Kind regards
> Linus Törngren
More information about the code-quality