-
Notifications
You must be signed in to change notification settings - Fork 26
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
Get flake8 running on the codebase #266
Comments
#267 reduces the number from 2825 to 863. |
See #268 for the machinery. Just for fun, here's a breakdown of the current warnings on master:
|
So flake8 is already running on CI, I saw that there are some ignores in the setup.cfg. Trying to understand what needs to happen in order to close this issue: I am not sure an empty setup.cfg is what we are shooting for here. I am not sure if |
I think this issue can be closed @kitchoi . The examples which we will be including in closing issue. |
Yes, sorry; this should have been closed when #268 was merged. |
I see. Thank you. |
I'm not sure it's worth it; unless there's a strong reason to keep it, I'd recommend that we just delete |
Yeah as soon as I started looking into it, I found some dead code and issues about deleting it, but there are also some light uses of it. I just did what is cheap to do. |
i've opened #327 to discuss removing |
For the 5.0 release, I'd like to get flake8 running on the codebase, in the same way as we're already doing for Traits.
At the last count, the number of individual complaints from
flake8
was almost 3000:So this looks like a daunting task.
However, I think we can approach this incrementally: start by adding a
setup.cfg
with a list of flake8 warnings and errors to ignore (and while we're at it, exclude theexamples
directory). Add warnings and errors to the ignore list until nothing is reported. Now remove the more serious warnings and errors from the list, one at a time, fixing up the code to comply as we go.The most important errors and warnings are the ones that are likely to catch future bugs: syntax errors, unused names, undefined names, unused imports, and the like.
For spacing errors, I'd recommend that we do a one-time application of black to the codebase.
The text was updated successfully, but these errors were encountered: