From 34ef4f9fd69100d6ee4f9937a8201022f75da4c4 Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Mon, 15 Apr 2024 11:05:18 +0200 Subject: [PATCH] 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: https://github.com/astral-sh/ruff/issues/10299 --- ruff.toml | 3 +++ setup.cfg | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ruff.toml b/ruff.toml index 70612985..06942bd4 100644 --- a/ruff.toml +++ b/ruff.toml @@ -1,3 +1,6 @@ +# keep in sync with `options.requires-python` in `setup.cfg` +target-version = "py38" + [lint] extend-select = [ "C901", diff --git a/setup.cfg b/setup.cfg index f46b6cbf..c2a1ff80 100644 --- a/setup.cfg +++ b/setup.cfg @@ -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]