Update pre-commit's `ruff` id (#19654)

This commit is contained in:
Harshil 2025-07-31 01:17:04 -04:00 committed by GitHub
parent f6b7418def
commit 32c454bb56
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -109,7 +109,7 @@ Ruff can be used as a [pre-commit](https://pre-commit.com) hook via [`ruff-pre-c
rev: v0.12.7 rev: v0.12.7
hooks: hooks:
# Run the linter. # Run the linter.
- id: ruff - id: ruff-check
# Run the formatter. # Run the formatter.
- id: ruff-format - id: ruff-format
``` ```
@ -122,7 +122,7 @@ To enable lint fixes, add the `--fix` argument to the lint hook:
rev: v0.12.7 rev: v0.12.7
hooks: hooks:
# Run the linter. # Run the linter.
- id: ruff - id: ruff-check
args: [ --fix ] args: [ --fix ]
# Run the formatter. # Run the formatter.
- id: ruff-format - id: ruff-format
@ -136,7 +136,7 @@ To avoid running on Jupyter Notebooks, remove `jupyter` from the list of allowed
rev: v0.12.7 rev: v0.12.7
hooks: hooks:
# Run the linter. # Run the linter.
- id: ruff - id: ruff-check
types_or: [ python, pyi ] types_or: [ python, pyi ]
args: [ --fix ] args: [ --fix ]
# Run the formatter. # Run the formatter.