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

Linting and static analysis (pylint, codacy) #863

Open
wants to merge 1 commit into
base: devel
Choose a base branch
from

Conversation

bobturneruk
Copy link
Contributor

pylint and other static analysis tools can provide helpful suggestions to improve GPy. Here, I propose a pylint config file that limits some checks where they deviate from GPy policy and propose using the Codacy platform as a simple means of gaining insight into what changes might be useful:

https://app.codacy.com/gh/RSE-Sheffield/GPy/dashboard

If this were merged into devel, an admin would need to do the codacy setup as permissions are needed - this example is on our fork.

Further customisation of codacy checks in line with GPy policy and community requirements would be essential.

@ekalosak
Copy link
Contributor

I duplicated this (in spirit, at least) in #910.

The pylint solution looks good, I'm not sure why we'd use that rather than flake8 though.

So, @bobturneruk , are you proposing adding a link to Codacity from the README.md, adding linting to CI as a blocking check, or something else? Keeping the code quality tools up-to-date is important, but I'm concerned we're snowballing everyone's favorite tool in the CI as-is.

@bobturneruk
Copy link
Contributor Author

Hi @ekalosak! I think any static analysis would be a good plan. I was proposing adding this in CI as a guide to contributors, with Codacy as the platform. The more prescriptive approach of mandating black is fine if it works for this community.

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