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