readme: indicate how enable/disable auto-fix (#26)
This commit is contained in:
parent
1591f358dc
commit
9f84243c82
13
README.md
13
README.md
@ -16,11 +16,22 @@ Add this to your `.pre-commit-config.yaml`:
|
||||
```yaml
|
||||
- repo: https://github.com/charliermarsh/ruff-pre-commit
|
||||
# Ruff version.
|
||||
rev: 'v0.0.241'
|
||||
rev: 'v0.0.245'
|
||||
hooks:
|
||||
- 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
|
||||
|
||||
MIT
|
||||
|
Loading…
Reference in New Issue
Block a user