-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
CI: Update version of 'black' #36493
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
CI: Update version of 'black' #36493
Conversation
214e04f
to
4a32460
Compare
exp = SparseArray( | ||
dense[ | ||
4:, | ||
] | ||
) # noqa: E231 |
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.
Can the trailing comma be removed here? The explicit ignoring of Missing whitespace after ',', ';', or ':' (E231)
suggests this is here on purpose
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.
Since dense
is a 1D array, it should be the same to remove it I think
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.
Do you think this warrants some type of @ mention for people to update their local environments to avoid potential clashing between local and CI?
pandas/io/formats/latex.py
Outdated
zip(*self.strcols) | ||
) # type: ignore[arg-type] |
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.
zip(*self.strcols) | |
) # type: ignore[arg-type] | |
zip(*self.strcols) # type: ignore[arg-type] | |
) |
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 👍 that solves the typing validation
I'll @ pandas/core / pandas/triage , do you think the rest of the contributors need alerting? I don't think there's that many other people who regularly submit PRs
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.
I think pandas/core and pandas/triage is probably fine
4:, | ||
] # noqa: E231 | ||
exp = SparseArray(dense[4:,]) # noqa: E231 | ||
res = sparse[4:] |
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.
since the test is called test_getslice_tuple
res = sparse[4:] | |
res = sparse[(slice(4, None),)] |
could be more appropriate?
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.
Ah, I missed the test name. So then it is probably indeed testing that passing a 1-len tuple is still working for a 1D array. Good catch!
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.
yes, you're right, thanks, I should've caught that
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Thanks @MarcoGorelli ! |
@pandas-dev/pandas-core @pandas-dev/pandas-triage reminder/notification to update |
closes #35925
Not many files left so am making a PR to close this off