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):
|
Ruff also works with [pre-commit](https://pre-commit.com):
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
repos:
|
- repo: https://github.com/charliermarsh/ruff-pre-commit
|
||||||
- repo: https://github.com/charliermarsh/ruff-pre-commit
|
# Ruff version.
|
||||||
rev: v0.0.191
|
rev: 'v0.0.191'
|
||||||
hooks:
|
hooks:
|
||||||
- id: ruff
|
- id: ruff
|
||||||
|
# Respect `exclude` and `extend-exclude` settings.
|
||||||
|
args: ["--force-exclude"]
|
||||||
```
|
```
|
||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue