From 2f07287c98c1bba818597c1f6d99e38d4e000c61 Mon Sep 17 00:00:00 2001 From: Tom Augspurger Date: Thu, 9 Sep 2021 09:34:14 -0500 Subject: [PATCH 1/2] Adopt dask pre-commit --- .pre-commit-config.yaml | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7fc0695a..b9fffc84 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,16 +1,17 @@ repos: -- repo: https://github.com/ambv/black - rev: stable - hooks: +- repo: https://github.com/psf/black + rev: 21.5b1 + hooks: - id: black - language_version: python3.7 - -- repo: https://gitlab.com/pycqa/flake8 - rev: 3.7.8 - hooks: + language_version: python3 + exclude: versioneer.py +- repo: https://gitlab.com/pycqa/flake8 + rev: 3.9.2 + hooks: - id: flake8 - exclude: > - (?x)^( - demo/dask_gateway_config.py - )$ - language_version: python3.7 + language_version: python3 +- repo: https://github.com/pycqa/isort + rev: 5.8.0 + hooks: + - id: isort + language_version: python3 From 45557c834d62a0d9931801a202815e288785773b Mon Sep 17 00:00:00 2001 From: Tom Augspurger Date: Thu, 9 Sep 2021 09:35:41 -0500 Subject: [PATCH 2/2] Update pre-commit-config This updates the pre-commit config to match Dask's (minus isort, which wasn't used previously. We can add that later if we want). --- .pre-commit-config.yaml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b9fffc84..d3049ff9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,14 +4,8 @@ repos: hooks: - id: black language_version: python3 - exclude: versioneer.py - repo: https://gitlab.com/pycqa/flake8 rev: 3.9.2 hooks: - id: flake8 language_version: python3 -- repo: https://github.com/pycqa/isort - rev: 5.8.0 - hooks: - - id: isort - language_version: python3