diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 1e08f0f..15d4bb6 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -54,7 +54,7 @@ jobs: python -m pip install isort - name: isort check run: | - isort --recursive --check-only . + isort --check-only . test: name: ${{ matrix.python-version }}-build runs-on: ubuntu-latest diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7dc8a9c..429f681 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v2.5.0 + rev: v3.1.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer @@ -9,26 +9,26 @@ repos: - id: check-yaml - id: double-quote-string-fixer - - repo: https://github.com/ambv/black - rev: 19.10b0 - hooks: - - id: black - args: ["--line-length", "100", "--skip-string-normalization"] - - repo: https://gitlab.com/pycqa/flake8 - rev: 3.7.9 + rev: 3.8.3 hooks: - id: flake8 - repo: https://github.com/asottile/seed-isort-config - rev: v1.9.4 + rev: v2.2.0 hooks: - id: seed-isort-config - repo: https://github.com/pre-commit/mirrors-isort - rev: v4.3.21 + rev: v5.0.9 hooks: - id: isort + - repo: https://github.com/ambv/black + rev: 19.10b0 + hooks: + - id: black + args: ["--line-length", "100", "--skip-string-normalization"] + - repo: https://github.com/prettier/prettier - rev: 1.19.1 + rev: 2.0.5 hooks: - id: prettier diff --git a/ci/py38.yml b/ci/py38.yml index bef01fb..e6e6259 100644 --- a/ci/py38.yml +++ b/ci/py38.yml @@ -6,4 +6,4 @@ dependencies: - dask - pytest - scikit-learn - - xarray + - xarray>=0.16 diff --git a/setup.cfg b/setup.cfg index c8ccb8e..1551f74 100644 --- a/setup.cfg +++ b/setup.cfg @@ -5,7 +5,7 @@ setup_requires = [flake8] exclude = docs ignore = E203,E266,E501,W503,F401,E722,E402,C901 -max-line-length = 80 +max-line-length = 88 max-complexity = 18 select = B,C,E,F,W,T4,B9