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 9a8e860
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ruff.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# keep in sync with `options.requires-python` in `setup.cfg`
target-version = "py38"

[lint]
extend-select = [
"C901",
Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ classifiers =

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

Expand Down

0 comments on commit 9a8e860

Please sign in to comment.