Update pre-commit instructions (#2838)

This commit is contained in:
Charlie Marsh 2023-02-12 19:06:40 -05:00 committed by GitHub
parent 7dab4807d0
commit 63f3d5e610
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 0 deletions

View File

@ -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