Skip to content

Commit f50920e

Browse files
committed
use per-file-target-version
1 parent 1210847 commit f50920e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[tool.ruff]
22
line-length = 125
33
target-version = "py39"
4-
# Because we set target-version=py39, ruff can't parse this file at all.
5-
# I don't think ruff supports per-file target versions.
6-
extend-exclude = ["test_typealias_py312.py"]
4+
5+
[tool.ruff.per-file-target-version]
6+
"test_typealias_py312.py" = "py312"
77

88
[tool.ruff.lint]
99
select = [

0 commit comments

Comments
 (0)