Maybe like this?

```
from flake8.main import main

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:
https://gitlab.com/pycqa/flake8/blob/master/flake8/main.py#L22

HTH,
Peter


2015-10-22 12:31 GMT+02:00 Linus Törmgren <li...@etnolit.se>:
> Hi,
> 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
_______________________________________________
code-quality mailing list
code-quality@python.org
https://mail.python.org/mailman/listinfo/code-quality

Reply via email to