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

global: use a static code analysis tool #1834

Closed
jacquerie opened this issue Dec 25, 2016 · 3 comments
Closed

global: use a static code analysis tool #1834

jacquerie opened this issue Dec 25, 2016 · 3 comments

Comments

@jacquerie
Copy link
Contributor

jacquerie commented Dec 25, 2016

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:

% flake8 --count --ignore=E501

[...]

892

IMO we should implement flake8 now and add later pylint, pyroma, vulture... (the rest of the stuff in prospector)

@jacquerie
Copy link
Contributor Author

@kaplun
Copy link
Contributor

kaplun commented Jan 9, 2017

@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.

@jacquerie
Copy link
Contributor Author

I think we agreed to do this.

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

No branches or pull requests

4 participants