-
Notifications
You must be signed in to change notification settings - Fork 663
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
Add Darken action to check for pep8 violations in diffs #3954
Conversation
There we go, so it ignores blank lines, but not 79 char issues... it's a start. |
Ok looks like it's keeping track of the head branch properly, now to see if we can get it to complain on incorrect number of lines between class definitions. |
Codecov ReportBase: 94.38% // Head: 94.41% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## develop #3954 +/- ##
===========================================
+ Coverage 94.38% 94.41% +0.02%
===========================================
Files 194 194
Lines 25242 25249 +7
Branches 3493 3493
===========================================
+ Hits 23825 23838 +13
+ Misses 1368 1367 -1
+ Partials 49 44 -5
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Ok this one is going to be contentious @MDAnalysis/coredevs so please take the time to review this before we have complaints further down the line. What does this do?
Why might it be annoying?
Do we have to listen to it?
What can't it do?Currently my only observations are:
|
P.S. This replaces our reliance on the unfortunately broken but amazing pep8speaks bot :( |
Could you make some changes that would not follow pep8 so we get to see what darken looks like? I liked pep8speak, too bad it is broken 😢 |
:D forgive me for my sins o Python gods (sure) |
The report is a bit dry, but I can do with it. What is the line length policy? |
I can live with it. |
For posterity: this is what output looks like for well/badly formatted code: https://github.com/MDAnalysis/mdanalysis/actions/runs/3651330936/jobs/6168426745 |
@IAlibay if you need a LGTM from me, remove the demonstration code and let me know. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
88 with darken, 79 with flake8, I'll see if there's a way to make them match |
blergh the |
@jbarnoud I've set them both to be 88 characters now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm
Fixes #3854
I'm trying to like Black @RMeli 🙃
Changes made in this Pull Request:
PR Checklist