Skip to content

Commit 34ef4f9

Browse files
These keys must be kept in sync
If `ruff.toml` exists, the `requires-python` key is currently not taken into account - not in `pyproject.toml` and even less in `setup.cfg`. See: astral-sh/ruff#10299
1 parent 34ba6b2 commit 34ef4f9

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

ruff.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# keep in sync with `options.requires-python` in `setup.cfg`
2+
target-version = "py38"
3+
14
[lint]
25
extend-select = [
36
"C901",

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ classifiers =
1414

1515
[options]
1616
include_package_data = true
17-
python_requires = >=3.8
17+
python_requires = >=3.8 # keep in sync with `target-version` in `ruff.toml`
1818
install_requires =
1919

2020
[options.extras_require]

0 commit comments

Comments
 (0)