mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-03 07:04:53 +00:00
Update README.md to use table for per-file-ignore (#549)
This commit is contained in:
parent
0827d0beef
commit
d4fc485a76
1 changed files with 1 additions and 4 deletions
|
@ -108,10 +108,7 @@ For example, you could configure Ruff to only enforce a subset of rules with:
|
||||||
line-length = 88
|
line-length = 88
|
||||||
select = ["E", "F"]
|
select = ["E", "F"]
|
||||||
ignore = ["E501"]
|
ignore = ["E501"]
|
||||||
per-file-ignores = [
|
per-file-ignores = {"__init__.py" = ["F401"], "path/to/file.py" = ["F401"]}
|
||||||
"__init__.py:F401",
|
|
||||||
"path/to/file.py:F401"
|
|
||||||
]
|
|
||||||
```
|
```
|
||||||
|
|
||||||
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