Skip to content

Commit 514463b

Browse files
authored
Fix ruff deprecation warnings for top-level linter settings (#2430)
1 parent 2c38c02 commit 514463b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pyproject.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,13 @@ ignore_missing_imports = true
8383

8484

8585
[tool.ruff]
86+
target-version = "py38"
8687

8788
# ruff is less lenient than pylint and does not make any exceptions
8889
# (for docstrings, strings and comments in particular).
8990
line-length = 110
9091

92+
[tool.ruff.lint]
9193
select = [
9294
"E", # pycodestyle
9395
"F", # pyflakes
@@ -112,8 +114,7 @@ fixable = [
112114
"RUF", # ruff
113115
]
114116
unfixable = ["RUF001"]
115-
target-version = "py38"
116117

117-
[tool.ruff.per-file-ignores]
118+
[tool.ruff.lint.per-file-ignores]
118119
# Ruff is autofixing a tests with a voluntarily sneaky unicode
119120
"tests/test_regrtest.py" = ["RUF001"]

0 commit comments

Comments
 (0)