Skip to content

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.

2 participants