diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6f084c3b2..c1e6d8497 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -25,7 +25,7 @@ repos: exclude: "^tests" - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.8.1 + rev: v0.8.6 hooks: - id: ruff args: ["--fix", "--show-fixes"] @@ -51,7 +51,7 @@ repos: exclude: ^src/scikit_build_core/resources/find_python - repo: https://github.com/rbubley/mirrors-prettier - rev: "v3.4.1" + rev: "v3.4.2" hooks: - id: prettier types_or: [yaml, markdown, html, css, scss, javascript, json] @@ -59,7 +59,7 @@ repos: exclude: "^tests|src/scikit_build_core/resources/scikit-build.schema.json|^docs/projects.md" - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.13.0 + rev: v1.14.1 hooks: - id: mypy exclude: | diff --git a/tests/test_cmake_config.py b/tests/test_cmake_config.py index 600c29d15..6a86e1ba8 100644 --- a/tests/test_cmake_config.py +++ b/tests/test_cmake_config.py @@ -57,7 +57,7 @@ def generator( else: monkeypatch.setenv("CMAKE_GENERATOR", request.param) - return request.param + return request.param # type: ignore[no-any-return] def configure_args( diff --git a/tests/test_setuptools_pep517.py b/tests/test_setuptools_pep517.py index 76ea5e75e..801b21d84 100644 --- a/tests/test_setuptools_pep517.py +++ b/tests/test_setuptools_pep517.py @@ -15,7 +15,6 @@ def test_pep517_sdist(): correct_metadata = textwrap.dedent( """\ - Metadata-Version: 2.1 Name: cmake-example Version: 0.0.1 Requires-Python: >=3.7 @@ -23,6 +22,8 @@ def test_pep517_sdist(): """ # TODO: why is this missing? # Requires-Dist: pytest>=6.0; extra == "test" + # This was removed in https://github.com/pypa/setuptools/pull/4698 as part of 2.2 support: + # Metadata-Version: 2.1 ) metadata_set = set(correct_metadata.strip().splitlines())