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? |
MarcoGorelli
left a comment
There was a problem hiding this comment.
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.
Looks like this block got extra-indented by one space, this is causing the CI error, could you move it back?
dsaxton
left a comment
There was a problem hiding this comment.
Looks good, just one tiny nitpick. Also merging master should fix the CI.
Co-authored-by: Daniel Saxton <2658661+dsaxton@users.noreply.github.com>
|
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