nr: #1 dodano: 2016-12-04 18:12
To expand on @kindall's comment,
Flake8 does not provide a statement checker, but it does have two ways of calculating cyclomatic complexity of functions and methods.
if/elif/else structures will add to the complexity, as will
To enable the "built-in" cyclomatic complexity enforcement, you can use
--max-complexity. There are, however, alternatives to the
mccabe project. For example, if you
pip install radon that adds it's own cyclomatic complexity checking to Flake8 and will run when you run Flake8.