-
Notifications
You must be signed in to change notification settings - Fork 69
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
global: use a static code analysis tool #1834
Comments
Some more options: https://github.com/mre/awesome-static-analysis#python |
@spirosdelviniotis, after you have finished with the merging PRs, this could be an interesting horizontal task. I.e. to go through all the warnings generated by flake8, and help improving the code base, thus making INSPIRE code base overall more robust. Some gotchas are extremely easy, but some other are more interesting and allow to further improve Python skills. |
I think we agreed to do this. |
As discussed with @jmartinm, in order to have better reviews we need a better baseline for code quality (otherwise we waste lots of time commenting on obvious stuff like indentation, imports...).
The solution to this is a static code analysis tool. I like prospector, which is a wrapper over several tools, except that critical PRs have been sitting unmerged for months (like prospector-dev/prospector#193).
Another one is flake8, which wraps less tools but looks better maintained overall. It still catches lots of stuff:
IMO we should implement
flake8
now and add laterpylint
,pyroma
,vulture
... (the rest of the stuff inprospector
)The text was updated successfully, but these errors were encountered: