Skip to content

Commit

Permalink
These keys must be kept in sync
Browse files Browse the repository at this point in the history
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
  • Loading branch information
DimitriPapadopoulos committed Apr 15, 2024
1 parent 34ba6b2 commit 34ef4f9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions ruff.toml
@@ -1,3 +1,6 @@
# keep in sync with `options.requires-python` in `setup.cfg`
target-version = "py38"

[lint]
extend-select = [
"C901",
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Expand Up @@ -14,7 +14,7 @@ classifiers =

[options]
include_package_data = true
python_requires = >=3.8
python_requires = >=3.8 # keep in sync with `target-version` in `ruff.toml`
install_requires =

[options.extras_require]
Expand Down

0 comments on commit 34ef4f9

Please sign in to comment.