-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Upgrade nbqa, add config options for black #4135
Conversation
@AlexAndorra it seems to me that average_disasters[i] = np.mean(np.where(idx, trace["early_rate"], trace["late_rate"])) (90 characters long) it'll reformat it to average_disasters[i] = np.mean(
np.where(idx, trace["early_rate"], trace["late_rate"])
) Is that OK, or would you prefer to use the line length from pyproject.toml? (the latter is what I've gone for in this PR) |
Codecov Report
@@ Coverage Diff @@
## master #4135 +/- ##
=======================================
Coverage 88.75% 88.75%
=======================================
Files 89 89
Lines 14037 14037
=======================================
Hits 12458 12458
Misses 1579 1579 |
Yeah it should use the line length from pyproject.toml IMO |
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, thanks @MarcoGorelli !
Does this mean people should use nbqa
to blacken NBs now, instead of black_nbconvert
?
If you want pyproject.toml configs to be respected, then I think that would be better - I'll update the wiki if you want this |
Ok, let's do that then! Indeed, thanks for updating the wiki 😉 |
@MarcoGorelli, since this is merged now, do you mind updating the NB style guide with the changes please? |
Hey @AlexAndorra - sorry for the delay, I've updated the wiki |
Perfect, thanks a lot @MarcoGorelli ! |
Ahead of #4095