Skip to content

Commit 14005c8

Browse files
authored
ruff: Fix config warnings (#1964)
1 parent 2a27e06 commit 14005c8

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

pyproject.toml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ extend-exclude = [
1616
]
1717
line-length = 120
1818
target-version = "py38"
19+
20+
[tool.ruff.lint]
1921
# See Rules in Ruff documentation: https://beta.ruff.rs/docs/rules/
2022
select = [
2123
"B", # bugbear
@@ -33,7 +35,7 @@ select = [
3335
]
3436
ignore = ["PYI021", "PYI024", "PYI041", "PYI043"]
3537

36-
[tool.ruff.per-file-ignores]
38+
[tool.ruff.lint.per-file-ignores]
3739
"*.pyi" = [
3840
"B",
3941
"E501",
@@ -48,10 +50,10 @@ ignore = ["PYI021", "PYI024", "PYI041", "PYI043"]
4850
"ext/tests/*.py" = ["INP001"]
4951
"setup.py" = ["INP001"]
5052

51-
[tool.ruff.flake8-tidy-imports.banned-api]
53+
[tool.ruff.lint.flake8-tidy-imports.banned-api]
5254
"_typeshed.Self".msg = "Use typing_extensions.Self (PEP 673) instead."
5355

54-
[tool.ruff.isort]
56+
[tool.ruff.lint.isort]
5557
known-first-party = ["django_stubs_ext", "mypy_django_plugin"]
5658
split-on-trailing-comma = false
5759

0 commit comments

Comments
 (0)