diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index 491cc71..4d17023 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -1,6 +1,6 @@ -- id: ruff - name: ruff - description: "Run 'ruff' for extremely fast Python linting" +- id: ruff-check + name: ruff check + description: "Run 'ruff check' for extremely fast Python linting" entry: ruff check --force-exclude language: python types_or: [python, pyi, jupyter] @@ -10,7 +10,7 @@ minimum_pre_commit_version: "2.9.2" - id: ruff-format - name: ruff-format + name: ruff format description: "Run 'ruff format' for extremely fast Python formatting" entry: ruff format --force-exclude language: python @@ -19,3 +19,15 @@ require_serial: true additional_dependencies: [] minimum_pre_commit_version: "2.9.2" + +# Legacy alias +- id: ruff + name: ruff (legacy alias) + description: "Run 'ruff check' for extremely fast Python linting" + entry: ruff check --force-exclude + language: python + types_or: [python, pyi, jupyter] + args: [] + require_serial: true + additional_dependencies: [] + minimum_pre_commit_version: "2.9.2" diff --git a/README.md b/README.md index adfe482..f55e273 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ repos: rev: v0.11.9 hooks: # Run the linter. - - id: ruff + - id: ruff-check # Run the formatter. - id: ruff-format ``` @@ -37,7 +37,7 @@ repos: rev: v0.11.9 hooks: # Run the linter. - - id: ruff + - id: ruff-check args: [ --fix ] # Run the formatter. - id: ruff-format @@ -52,7 +52,7 @@ repos: rev: v0.11.9 hooks: # Run the linter. - - id: ruff + - id: ruff-check types_or: [ python, pyi ] args: [ --fix ] # Run the formatter.