readme: indicate how enable/disable auto-fix (#26)

This commit is contained in:
Hugo 2023-02-13 01:01:57 +01:00 committed by GitHub
parent 1591f358dc
commit 9f84243c82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,11 +16,22 @@ Add this to your `.pre-commit-config.yaml`:
```yaml ```yaml
- repo: https://github.com/charliermarsh/ruff-pre-commit - repo: https://github.com/charliermarsh/ruff-pre-commit
# Ruff version. # Ruff version.
rev: 'v0.0.241' rev: 'v0.0.245'
hooks: hooks:
- id: ruff - id: ruff
``` ```
Or, to enable autofix:
```yaml
- repo: https://github.com/charliermarsh/ruff-pre-commit
# Ruff version.
rev: 'v0.0.245'
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
```
## License ## License
MIT MIT