Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does flake8 require any installation of my Python project's dependencies?

Is Flake8 a pure static code analyser or should I run pip install -r requirements.txt first?

Or, is there any use case where Flake8 can use the installed dependencies?

like image 396
4 revs, 2 users 76% Avatar asked Oct 16 '22 10:10

4 revs, 2 users 76%


1 Answers

flake8 by itself (with the default plugin set) is a purely static linter and does not rely on your installed application dependencies

there are some plugins which will require dynamic analysis such as flake8-mypy or flake8-isort

(disclaimer: I am the current maintainer of flake8)

like image 176
Anthony Sottile Avatar answered Nov 15 '22 09:11

Anthony Sottile