mirror of https://github.com/astral-sh/ruff
Set force-exclude for pre-commit in README (#1337)
This commit is contained in:
parent
3eff9a2860
commit
970f882b03
12
README.md
12
README.md
|
|
@ -160,11 +160,13 @@ ruff path/to/code/ --watch
|
|||
Ruff also works with [pre-commit](https://pre-commit.com):
|
||||
|
||||
```yaml
|
||||
repos:
|
||||
- repo: https://github.com/charliermarsh/ruff-pre-commit
|
||||
rev: v0.0.191
|
||||
hooks:
|
||||
- id: ruff
|
||||
- repo: https://github.com/charliermarsh/ruff-pre-commit
|
||||
# Ruff version.
|
||||
rev: 'v0.0.191'
|
||||
hooks:
|
||||
- id: ruff
|
||||
# Respect `exclude` and `extend-exclude` settings.
|
||||
args: ["--force-exclude"]
|
||||
```
|
||||
|
||||
## Configuration
|
||||
|
|
|
|||
Loading…
Reference in New Issue