Skip to content

Commit f206ee2

Browse files
pre-commit: autoupdate hook versions
1 parent 402a9b3 commit f206ee2

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ repos:
88
- id: check-yaml
99
# isort should run before black as black sometimes tweaks the isort output
1010
- repo: https://github.com/PyCQA/isort
11-
rev: 5.9.3
11+
rev: 5.10.0
1212
hooks:
1313
- id: isort
1414
# https://github.com/python/black#version-control-integration
1515
- repo: https://github.com/psf/black
16-
rev: 21.9b0
16+
rev: 21.10b0
1717
hooks:
1818
- id: black
1919
- id: black-jupyter

xarray/tests/test_distributed.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,9 @@
22
import pickle
33

44
import pytest
5-
6-
dask = pytest.importorskip("dask") # isort:skip
7-
distributed = pytest.importorskip("distributed") # isort:skip
8-
95
from dask.distributed import Client, Lock
10-
from distributed.utils_test import cluster, gen_cluster
11-
from distributed.utils_test import loop
126
from distributed.client import futures_of
7+
from distributed.utils_test import cluster, gen_cluster, loop
138

149
import xarray as xr
1510
from xarray.backends.locks import HDF5_LOCK, CombinedLock
@@ -25,12 +20,16 @@
2520
assert_allclose,
2621
has_h5netcdf,
2722
has_netCDF4,
28-
requires_rasterio,
2923
has_scipy,
30-
requires_zarr,
3124
requires_cfgrib,
25+
requires_rasterio,
26+
requires_zarr,
3227
)
3328

29+
dask = pytest.importorskip("dask") # isort:skip
30+
distributed = pytest.importorskip("distributed") # isort:skip
31+
32+
3433
# this is to stop isort throwing errors. May have been easier to just use
3534
# `isort:skip` in retrospect
3635

0 commit comments

Comments
 (0)