Skip to content

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

Merged
merged 12 commits into from
Sep 22, 2020

Conversation

MarcoGorelli
Copy link
Member

closes #35925

Not many files left so am making a PR to close this off

@MarcoGorelli MarcoGorelli marked this pull request as draft September 20, 2020 06:59
Comment on lines 697 to 701
exp = SparseArray(
dense[
4:,
]
) # noqa: E231
Copy link
Member Author

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

Copy link
Member

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

@MarcoGorelli MarcoGorelli marked this pull request as ready for review September 20, 2020 07:15
Copy link
Member

@dsaxton dsaxton left a 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?

Comment on lines 45 to 46
zip(*self.strcols)
) # type: ignore[arg-type]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
zip(*self.strcols)
) # type: ignore[arg-type]
zip(*self.strcols) # type: ignore[arg-type]
)

Copy link
Member Author

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

Copy link
Member

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

@MarcoGorelli MarcoGorelli marked this pull request as draft September 20, 2020 18:35
4:,
] # noqa: E231
exp = SparseArray(dense[4:,]) # noqa: E231
res = sparse[4:]
Copy link
Member

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

Suggested change
res = sparse[4:]
res = sparse[(slice(4, None),)]

could be more appropriate?

Copy link
Member

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!

Copy link
Member Author

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

@MarcoGorelli MarcoGorelli marked this pull request as ready for review September 21, 2020 07:40
@simonjayhawkins simonjayhawkins added CI Continuous Integration Code Style Code style, linting, code_checks labels Sep 21, 2020
@MarcoGorelli
Copy link
Member Author

/azp run

@azure-pipelines
Copy link
Contributor

Azure Pipelines successfully started running 1 pipeline(s).

@jorisvandenbossche jorisvandenbossche changed the title CI Update version of 'black' CI: Update version of 'black' Sep 22, 2020
@jorisvandenbossche jorisvandenbossche added this to the 1.2 milestone Sep 22, 2020
@jorisvandenbossche jorisvandenbossche merged commit 9b6d66e into pandas-dev:master Sep 22, 2020
@jorisvandenbossche
Copy link
Member

Thanks @MarcoGorelli !

@MarcoGorelli MarcoGorelli deleted the update-black branch September 22, 2020 13:58
@simonjayhawkins simonjayhawkins mentioned this pull request Sep 23, 2020
5 tasks
@MarcoGorelli
Copy link
Member Author

@pandas-dev/pandas-core @pandas-dev/pandas-triage reminder/notification to update black, in case you've not already done so

kesmit13 pushed a commit to kesmit13/pandas that referenced this pull request Nov 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI Continuous Integration Code Style Code style, linting, code_checks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CLN remove unnecessary trailing commas to get ready for new version of black
4 participants