-
Notifications
You must be signed in to change notification settings - Fork 37
[ci] add flake8 #161
Comments
@jameslamb yeah I think some of those warnings are invalid, for others you're correct. As long as we can annotate that certain cases should be skipped then I think this would be useful to run as a pre-commit hook in addition to adding it to circleci. But, let me work on reformatting to black first #119 . |
yep for sure! For example, I like the pattern of using |
Sorry @jameslamb let me add Issue for reference #174 |
no prob no prob |
FYI @jameslamb #184 by @elijahbenizzy will be merged tomorrow (🤞). |
@jameslamb you're good. |
I put up a few PRs tonight that together address all the If / when those are merged, I'll put up one more that adds |
Is your feature request related to a problem? Please describe.
The project does not currently have any automatic protections against some classes of issue that can be detected by
flake8
, including:pytest
skipping tests)Describe the solution you'd like
I believe this project should use
flake8
for linting, and should store the configuration for that tool in asetup.cfg
file (https://flake8.pycqa.org/en/latest/user/configuration.html).Adding this tool to the project's testing setup would reduce the effort required for pull request authors and reviewers to detect such issues, and would reduce the risk of code changes with such issues making it to
main
.Describe alternatives you've considered
N/A
Additional context
Here is the result of running
flake8
(ignoring style-only issues) on the current latest commit onmain
.flake8 \ --ignore=E126,E128,E203,E241,E261,E302,E303,E402,E501,W503,W504,W605 \ .
If maintainers are interested, I'd be happy to put up a pull request proposing this.
Thanks for your time and consideration.
The text was updated successfully, but these errors were encountered: