Fix typo in configuration docs (#12655)

This commit is contained in:
DavideRagazzon 2024-08-04 09:43:51 +02:00 committed by GitHub
parent 733341ab39
commit 9ee44637ca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -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"]