-
Notifications
You must be signed in to change notification settings - Fork 392
Add Black formatting check to CI #255
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #255 +/- ##
==========================================
+ Coverage 94.91% 94.91% +<.01%
==========================================
Files 18 18
Lines 4226 4229 +3
==========================================
+ Hits 4011 4014 +3
Misses 215 215
Continue to review full report at Codecov.
|
|
@Peque With this check added to CI, if the lint check fails, the user will need to run |
|
@jmwright I could also add a recommendation to use |
|
@Peque Yes, that's a very different workflow from what I'm used to. I don't know enough to really understand what that would do to the commit tree. |
|
Maybe I should also add that adding assertions to the test is a must? It seems the latest changes integrated (in particular the |
|
@adam-urbanczyk Any thoughts on this? 😊 |
|
@Peque cf. my comment above. Otherwise I am wondering if it would be possible to add a pre-commit hook to streamline using black. Do you happen to have any experience in doing that? This https://pre-commit.com/ looks like a relevant solution. |
|
@adam-urbanczyk Rebased and force-pushed. Emoji were removed. 💔 No experience with pre-commit hooks, sorry. I personally don't like that very much. I am more in favor of: your computer, your rules. You decide when to run those checks and how. As long as your changes pass the pipelines, you are fine. Maybe if I spent some time trying them I would change my mind, but I have not been encouraged too much to try them so far. |
|
@adam-urbanczyk Friendly ping. 😊 |
|
@adam-urbanczyk Yes, +1 |
|
Thanks again for the contribution @Peque ! |
No description provided.