-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DOC: ran blacken docs tool and checked output to improve formatting #36777 #36802
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
DOC: ran blacken docs tool and checked output to improve formatting #36777 #36802
Conversation
Thanks @maria-ilie ! This looks correct, it's just that E203 needs to be added to the ignore list for [flake8-rst] Could you make the following change to diff --git a/setup.cfg b/setup.cfg
index 73986f692..eb2efb937 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -40,7 +40,9 @@ bootstrap =
np # avoiding error when importing again numpy or pandas
pd # (in some cases we want to do it to show users)
ignore = E402, # module level import not at top of file
+ E203, # space before : (needed for how black formats slicing)
W503, # line break before binary operator
+ W504, # line break after binary operator
# Classes/functions in different blocks can generate those errors
E302, # expected 2 blank lines, found 0
E305, # expected 2 blank lines after class or function definition, found 0 (please do ask if you want/need help) |
Just to be sure we don't get any conflicts, I edited |
Thanks @maria-ilie for the PR, can you merge master to fix the conflict? |
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.
Thanks for updating, there's just one small thing which is causing the automated checks to fail
df = pd.DataFrame( | ||
{"id": [1, 2, 3, 4, 5, 6], "raw_grade": ["a", "b", "b", "a", "a", "e"]} | ||
) |
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.
Looks like this block got extra-indented by one space, this is causing the CI error, could you move it back?
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.
Looks good, just one tiny nitpick. Also merging master should fix the CI.
Co-authored-by: Daniel Saxton <[email protected]>
Thanks @maria-ilie |
Thanks so much for reviewing! |
Happy to help, let us know if you'd like any help/mentoring with other issues |
For task #36777
Ran blacken-tools on user_guide/10min.rst, user_guide/advanced.rst, basics.rst