nejucomo / onslaught

Run style and static checks against a python codebase, execute automated tests with coverage.
0 stars 1 forks source link

Replace Flake8 with unconfigurable PEP8 + pyflakes (or turn off Flake8 flexibility). #2

Open nejucomo opened 9 years ago

nejucomo commented 9 years ago

The flake8 docs point out that it combines:

Additionally, flake8 will ignore certain lines or files of source which have magic comment strings and supports plugins. Plugins and per-project (or per-user) configurability are antithetical to onslaught's goals, so we either need to disable these features if possible, or replace flake8.

I shy away from the McCabe complexity feature, even if it were made unconfigurable, because I'd like for the onslaught criteria to be memorable and recognizable by a human. I suspect McCabe complexity thresholds are difficult to detect without using a tool.