Skip to content

Commit 30a577d

Browse files
committed
Update pre-commit
1 parent 16d8c39 commit 30a577d

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

.pre-commit-config.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,27 @@ repos:
77

88
# isort should run before black as black sometimes tweaks the isort output
99
- repo: https://github.com/timothycrosley/isort
10-
rev: 5.7.0
10+
rev: 5.9.3
1111
hooks:
1212
- id: isort
1313
files: .+\.py$
1414

1515
# https://github.com/python/black#version-control-integration
1616
- repo: https://github.com/python/black
17-
rev: 20.8b1
17+
rev: 21.7b0
1818
hooks:
1919
- id: black
2020

2121
- repo: https://gitlab.com/pycqa/flake8
22-
rev: 3.8.3
22+
rev: 3.9.2
2323
hooks:
2424
- id: flake8
2525

2626
- repo: https://github.com/pre-commit/mirrors-mypy
27-
rev: v0.800 # Must match ci/requirements/*.yml
27+
rev: v0.910
2828
hooks:
29-
- id: mypy
29+
- id: mypy
30+
additional_dependencies: [types-all]
3031

3132
- repo: https://github.com/deathbeds/prenotebook
3233
rev: f5bdb72a400f1a56fe88109936c83aa12cc349fa
@@ -37,6 +38,7 @@ repos:
3738
rev: 3f92957478422df87bd730abde66f089cc1ee19b
3839
hooks:
3940
- id: rstcheck
41+
4042
# run this occasionally, ref discussion https://github.com/pydata/xarray/pull/3194
4143
# - repo: https://github.com/asottile/pyupgrade
4244
# rev: v1.22.1

cf_xarray/accessor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ def _get_bounds(obj: Union[DataArray, Dataset], key: str) -> List[str]:
348348
def _get_with_standard_name(
349349
obj: Union[DataArray, Dataset], name: Union[str, List[str]]
350350
) -> List[str]:
351-
""" returns a list of variable names with standard name == name. """
351+
"""returns a list of variable names with standard name == name."""
352352
if name is None:
353353
return []
354354

0 commit comments

Comments
 (0)