diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index cc941189..a8c0c3c2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -14,14 +14,14 @@ repos: - id: trailing-whitespace - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.12.3 + rev: v0.12.4 hooks: - id: ruff args: ["--fix", "--show-fixes"] - id: ruff-format - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.16.1 + rev: v1.17.0 hooks: - id: mypy name: mypy 3.11 on cibuildwheel/ diff --git a/cibuildwheel/projectfiles.py b/cibuildwheel/projectfiles.py index f9e2ef3b..19631460 100644 --- a/cibuildwheel/projectfiles.py +++ b/cibuildwheel/projectfiles.py @@ -50,7 +50,7 @@ class Analyzer(ast.NodeVisitor): ) match node: - case ast.keyword(arg="python_requires", value=ast.Constant(value=version)): + case ast.keyword(arg="python_requires", value=ast.Constant(value=str(version))): if unnested or name_main_unnested: self.requires_python = version