Skip to content

Commit

Permalink
pre-commit: autoupdate hook versions
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Nov 7, 2021
1 parent 402a9b3 commit f206ee2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ repos:
- id: check-yaml
# isort should run before black as black sometimes tweaks the isort output
- repo: https://github.com/PyCQA/isort
rev: 5.9.3
rev: 5.10.0
hooks:
- id: isort
# https://github.com/python/black#version-control-integration
- repo: https://github.com/psf/black
rev: 21.9b0
rev: 21.10b0
hooks:
- id: black
- id: black-jupyter
Expand Down
15 changes: 7 additions & 8 deletions xarray/tests/test_distributed.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,9 @@
import pickle

import pytest

dask = pytest.importorskip("dask") # isort:skip
distributed = pytest.importorskip("distributed") # isort:skip

from dask.distributed import Client, Lock
from distributed.utils_test import cluster, gen_cluster
from distributed.utils_test import loop
from distributed.client import futures_of
from distributed.utils_test import cluster, gen_cluster, loop

import xarray as xr
from xarray.backends.locks import HDF5_LOCK, CombinedLock
Expand All @@ -25,12 +20,16 @@
assert_allclose,
has_h5netcdf,
has_netCDF4,
requires_rasterio,
has_scipy,
requires_zarr,
requires_cfgrib,
requires_rasterio,
requires_zarr,
)

dask = pytest.importorskip("dask") # isort:skip
distributed = pytest.importorskip("distributed") # isort:skip


# this is to stop isort throwing errors. May have been easier to just use
# `isort:skip` in retrospect

Expand Down

0 comments on commit f206ee2

Please sign in to comment.