mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-25 11:30:58 +00:00
Use alternative TOML format for per-file-ignores in README (#931)
This commit is contained in:
parent
a4a215e8a3
commit
3f689917cb
1 changed files with 3 additions and 1 deletions
|
@ -187,7 +187,9 @@ fix = true
|
||||||
unfixable = ["F401"]
|
unfixable = ["F401"]
|
||||||
|
|
||||||
# Ignore `E402` (import violations in any `__init__.py` file, and in `path/to/file.py`.
|
# Ignore `E402` (import violations in any `__init__.py` file, and in `path/to/file.py`.
|
||||||
per-file-ignores = {"__init__.py" = ["E402"], "path/to/file.py" = ["E402"]}
|
[tool.ruff.per-file-ignores]
|
||||||
|
"__init__.py" = ["E402"]
|
||||||
|
"path/to/file.py" = ["E402"]
|
||||||
```
|
```
|
||||||
|
|
||||||
Plugin configurations should be expressed as subsections, e.g.:
|
Plugin configurations should be expressed as subsections, e.g.:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue