-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
run black and blackdoc #4381
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
run black and blackdoc #4381
Conversation
Do we need to change the pre-commit versions? I guess CI pulls latest and so that automatically updates? |
I don't think so, we're using the The only thing we can change in this PR is the trailing comma, so it would be good to review that. |
Ah, sorry, it's only LGTM! |
actually, everything except |
Do you think they should be? It's going to be a difficult error to debug for folks who don't know the tools well, if there are backward / forward incompatible changes (maybe there aren't any though?) |
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.
just two minor nits.
@@ -56,7 +56,9 @@ | |||
) | |||
|
|||
|
|||
def broadcast_dimension_size(variables: List[Variable],) -> Dict[Hashable, int]: | |||
def broadcast_dimension_size( | |||
variables: List[Variable], |
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.
seems unnecessary
variables: List[Variable], | |
variables: List[Variable] |
@@ -322,7 +322,9 @@ def _assert_dataset_invariants(ds: Dataset): | |||
assert isinstance(ds._attrs, (type(None), dict)) | |||
|
|||
|
|||
def _assert_internal_invariants(xarray_obj: Union[DataArray, Dataset, Variable],): | |||
def _assert_internal_invariants( | |||
xarray_obj: Union[DataArray, Dataset, Variable], |
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.
xarray_obj: Union[DataArray, Dataset, Variable], | |
xarray_obj: Union[DataArray, Dataset, Variable] |
also unnecessary?
hahaha no worries. |
D'oh @dcherian ! |
black
changed their style (format docstrings and trailing comma handling mostly) in their new release. This simply runs that new version ofblack
on the repository.This is a separate PR so reviewing becomes easier.
Since it is an automatic change, this should be ready to be merged once the CI is green.