8000 MAINT: run black on all files in CI by person142 · Pull Request #64 · numpy/numpy-stubs · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Jun 10, 2020. It is now read-only.

MAINT: run black on all files in CI #64

Merged
merged 1 commit into from
Apr 22, 2020

Conversation

person142
Copy link
Member

In #63 black was run on setup.py. Follow up by running black on all files in CI. Do an inital pass over the entire codebase so that the CI check will pass.

I'm usually opposed to things like this, but it seems like we're in an early enough stage that it should be ok.

In numpy#63 black was run on
`setup.py`. Follow up by running black on all files in CI. Do an
inital pass over the entire codebase so that the CI check will pass.
@@ -2,4 +2,6 @@

np.AxisError(1.0) # E: Argument 1 to "AxisError" has incompatible type
np.AxisError(1, ndim=2.0) # E: Argument "ndim" to "AxisError" has incompatible type
np.AxisError(2, msg_prefix=404) # E: Argument "msg_prefix" to "AxisError" has incompatible type
np.AxisError(
2, msg_prefix=404 # E: Argument "msg_prefix" to "AxisError" has incompatible 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.

This is an interesting one where you do have to modify the output black gives you a bit because the exact line number matters. I don't think this should be a huge inconvenience going forward though.

@rgommers
Copy link
Member

This is fine with me, agreed that it's still early enough

@person142
Copy link
Member Author

Ok, let's merge it then before it gets stale.

@person142 person142 merged commit d816031 into numpy:master Apr 22, 2020
@person142 person142 deleted the black-on-everything branch April 22, 2020 03:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0