From 1aa5802dd247c277f0ea82affadf99469a2752a7 Mon Sep 17 00:00:00 2001 From: Charles Blackmon-Luca <20627856+charlesbluca@users.noreply.github.com> Date: Wed, 21 Jul 2021 13:28:54 -0400 Subject: [PATCH] Pin `isort` hook to 5.6.4 (#73) Pins the `isort` pre-commit hook to 5.6.4 to correspond with the version bump in gpuCI (see rapidsai/integration#286). Also moves the pre-commit configuration to the root directory so it can be detected when running `pre-commit`. Authors: - Charles Blackmon-Luca (https://github.com/charlesbluca) Approvers: - https://github.com/jakirkham URL: https://github.com/rapidsai/cucim/pull/73 --- .pre-commit-config.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .pre-commit-config.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 000000000..020613427 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,23 @@ +# To install the git pre-commit hook run: +# pre-commit install +# To update the pre-commit hooks run: +# pre-commit install-hooks +exclude: '^(\.tox|ci/templates|\.bumpversion\.cfg)(/|$)' +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: master + hooks: + - id: trailing-whitespace + - id: end-of-file-fixer + - id: debug-statements + - repo: https://github.com/pycqa/isort + rev: 5.6.4 + hooks: + - id: isort + files: ^python/cucim/src/.* + args: ["--settings-path=python/cucim/setup.cfg"] + - repo: https://gitlab.com/pycqa/flake8 + rev: master + hooks: + - id: flake8 + files: ^python/cucim/.*