mirror of https://github.com/astral-sh/ruff
Fix typo in configuration docs (#12655)
This commit is contained in:
parent
733341ab39
commit
9ee44637ca
|
|
@ -189,7 +189,7 @@ As an example, the following would configure Ruff to:
|
||||||
# 3. Avoid trying to fix flake8-bugbear (`B`) violations.
|
# 3. Avoid trying to fix flake8-bugbear (`B`) violations.
|
||||||
unfixable = ["B"]
|
unfixable = ["B"]
|
||||||
|
|
||||||
# 4. Ignore `E402` (import violations) in all `__init__.py` files, and in select subdirectories.
|
# 4. Ignore `E402` (import violations) in all `__init__.py` files, and in selected subdirectories.
|
||||||
[tool.ruff.lint.per-file-ignores]
|
[tool.ruff.lint.per-file-ignores]
|
||||||
"__init__.py" = ["E402"]
|
"__init__.py" = ["E402"]
|
||||||
"**/{tests,docs,tools}/*" = ["E402"]
|
"**/{tests,docs,tools}/*" = ["E402"]
|
||||||
|
|
@ -212,7 +212,7 @@ As an example, the following would configure Ruff to:
|
||||||
# 3. Avoid trying to fix flake8-bugbear (`B`) violations.
|
# 3. Avoid trying to fix flake8-bugbear (`B`) violations.
|
||||||
unfixable = ["B"]
|
unfixable = ["B"]
|
||||||
|
|
||||||
# 4. Ignore `E402` (import violations) in all `__init__.py` files, and in select subdirectories.
|
# 4. Ignore `E402` (import violations) in all `__init__.py` files, and in selected subdirectories.
|
||||||
[lint.per-file-ignores]
|
[lint.per-file-ignores]
|
||||||
"__init__.py" = ["E402"]
|
"__init__.py" = ["E402"]
|
||||||
"**/{tests,docs,tools}/*" = ["E402"]
|
"**/{tests,docs,tools}/*" = ["E402"]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue