From 49580cfa977eaef89b95d070e59214ebc9a05c43 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Mon, 29 Jul 2024 19:51:53 -0700 Subject: [PATCH] Change `[tool.ruff]` `target-version` to `"py38"`, as suggested by @Skylion007 --- pybind11/__init__.py | 2 +- pybind11/setup_helpers.py | 2 +- pyproject.toml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pybind11/__init__.py b/pybind11/__init__.py index 99408ea2cf..e9d033c4b4 100644 --- a/pybind11/__init__.py +++ b/pybind11/__init__.py @@ -2,7 +2,7 @@ import sys -if sys.version_info < (3, 8): +if sys.version_info < (3, 8): # noqa: UP036 msg = "pybind11 does not support Python < 3.8. v2.13 was the last release supporting Python 3.7." raise ImportError(msg) diff --git a/pybind11/setup_helpers.py b/pybind11/setup_helpers.py index ced506f8c2..f24291818c 100644 --- a/pybind11/setup_helpers.py +++ b/pybind11/setup_helpers.py @@ -249,7 +249,7 @@ def has_flag(compiler: Any, flag: str) -> bool: cpp_flag_cache = None -@lru_cache() +@lru_cache def auto_cpp_level(compiler: Any) -> str | int: """ Return the max supported C++ std level (17, 14, or 11). Returns latest on Windows. diff --git a/pyproject.toml b/pyproject.toml index 64f70ae8a1..c5e2651d6a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -45,7 +45,7 @@ messages_control.disable = [ ] [tool.ruff] -target-version = "py37" +target-version = "py38" src = ["src"] [tool.ruff.lint]