mirror of https://github.com/astral-sh/ruff
Update pre-commit instructions (#2838)
This commit is contained in:
parent
7dab4807d0
commit
63f3d5e610
11
README.md
11
README.md
|
|
@ -237,6 +237,17 @@ Ruff also works with [pre-commit](https://pre-commit.com):
|
|||
- id: ruff
|
||||
```
|
||||
|
||||
Or, to enable autofix:
|
||||
|
||||
```yaml
|
||||
- repo: https://github.com/charliermarsh/ruff-pre-commit
|
||||
# Ruff version.
|
||||
rev: 'v0.0.246'
|
||||
hooks:
|
||||
- id: ruff
|
||||
args: [--fix, --exit-non-zero-on-fix]
|
||||
```
|
||||
|
||||
<!-- End section: Installation and Usage -->
|
||||
|
||||
## Configuration
|
||||
|
|
|
|||
Loading…
Reference in New Issue