From 9a8e8601c410cacd56aa071934899be746a16906 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 | 1 + 2 files changed, 4 insertions(+) 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..0baf817c 100644 --- a/setup.cfg +++ b/setup.cfg @@ -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 =