From 27cc7e236c70bed8bba48c48bd440e7e4277683c Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Mon, 19 Sep 2022 21:06:39 -0600 Subject: [PATCH] Use a separate repo for pre-commit (#229) --- .pre-commit-config.yaml | 2 +- .pre-commit-hooks.yaml | 7 ------- README.md | 10 +++++----- 3 files changed, 6 insertions(+), 13 deletions(-) delete mode 100644 .pre-commit-hooks.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 396bbdda2a..544aeee334 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,5 +1,5 @@ repos: - - repo: https://github.com/charliermarsh/ruff + - repo: https://github.com/charliermarsh/ruff-pre-commit rev: v0.0.40 hooks: - id: lint diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml deleted file mode 100644 index 5c0f6484e0..0000000000 --- a/.pre-commit-hooks.yaml +++ /dev/null @@ -1,7 +0,0 @@ -- id: lint - name: ruff lint - description: Run ruff to lint Python files. - entry: ruff - language: python - types_or: [python] - pass_filenames: true diff --git a/README.md b/README.md index d10ee26e67..721f89c4aa 100644 --- a/README.md +++ b/README.md @@ -54,14 +54,14 @@ You can run ruff in `--watch` mode to automatically re-run on-change: ruff path/to/code/ --watch ``` -ruff also works with [Pre-Commit](https://pre-commit.com) (requires Cargo on system): +ruff also works with [pre-commit](https://pre-commit.com): ```yaml repos: -- repo: https://github.com/charliermarsh/ruff - rev: v0.0.40 - hooks: - - id: lint + - repo: https://github.com/charliermarsh/ruff-pre-commit + rev: v0.0.40 + hooks: + - id: lint ``` ## Configuration