-
Notifications
You must be signed in to change notification settings - Fork 54
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
Time to add pull request linting? #273
Comments
I think it would be good to add (and it's interesting to see what it brings up), however I agree that it may add obstacles to contributing to tobac Would it be possible to add an action that runs pylint and posts the results to the PR and highlight if the score has reduced? That way we could highlight linting issues without it being an immediate barrier to contributing For reference, the current |
I have a dumb question- what does |
Here's an example below of running
|
That is a nice idea. I think it should be fairly easy to run pylint and post the result. I can have a look into whether it would be possible to only post the result the if the score has been reduced and if so, only the lines for the modified/added code. |
black is PEP-8 compatible and I am quite sure that people use pylint and black together, so it should not give us any headaches |
Resolved by #373 |
A while ago we have discussed the use of
pylint
, e.g. require a certain score as an additional check in the workflow on pull requests. I think it could be a good time to introduce the use of linting because this would facilitate the review of comprehensive pull requests - a lot of comments tend to be style comments, redundant imports, etc. that would be automatically detected.The drawback is that this would introduce an additional barrier for code contributors. So instead of making it an official requirement, we could also just recommend the use of linting in the developer guide and try to use it internally first. Any thoughts on this?
The text was updated successfully, but these errors were encountered: