Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add flake8 linter #1343

Merged
merged 21 commits into from May 15, 2020
Merged

Add flake8 linter #1343

merged 21 commits into from May 15, 2020

Conversation

adisbladis
Copy link
Member

This is mainly an addition to avoid import loops by detecting unused imports early and force them to be removed.

Flake8 also detects other things which may be of interest of us such as bad variable naming, cyclomatic complexity (this one is of great interest to me at least).

We opt out of a number of checks that conflict with black's auto formatting rules.

@grahamc
Copy link
Member

grahamc commented May 13, 2020

Ratchet is whatever, but the requirements.txt for the docs is out of date

Copy link
Member

@grahamc grahamc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Easiest yes all day

@grahamc
Copy link
Member

grahamc commented May 15, 2020

Ignoring the ratchet since this is strictly an improvement, and a few deleted imports shouldn't be penalized.

@grahamc grahamc merged commit 9807e68 into NixOS:master May 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants