diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0ab61c42e..7e542c333 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.9.4 + rev: v0.9.9 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.2" + rev: "v3.5.3" 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.14.1 + rev: v1.15.0 hooks: - id: mypy exclude: | @@ -129,12 +129,12 @@ repos: additional_dependencies: [cogapp] - repo: https://github.com/henryiii/validate-pyproject-schema-store - rev: 2025.02.03 + rev: 2025.02.24 hooks: - id: validate-pyproject - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.31.1 + rev: 0.31.2 hooks: - id: check-dependabot - id: check-github-workflows diff --git a/src/scikit_build_core/builder/sysconfig.py b/src/scikit_build_core/builder/sysconfig.py index cd354946e..fffe7be47 100644 --- a/src/scikit_build_core/builder/sysconfig.py +++ b/src/scikit_build_core/builder/sysconfig.py @@ -167,7 +167,7 @@ def get_soabi(env: Mapping[str, str], *, abi3: bool = False) -> str: if setuptools_ext_suffix: return setuptools_ext_suffix.rsplit(".", 1)[0].lstrip(".") - if sys.version_info < (3, 8, 7): # noqa: UP036 + if sys.version_info < (3, 8, 7): # See https://github.com/python/cpython/issues/84006 import distutils.sysconfig # pylint: disable=deprecated-module diff --git a/tests/test_pyproject_pep660.py b/tests/test_pyproject_pep660.py index 2ab236a08..d2f4f3a1d 100644 --- a/tests/test_pyproject_pep660.py +++ b/tests/test_pyproject_pep660.py @@ -97,7 +97,7 @@ def test_pep660_pip_isolated(isolated, isolate, editable_mode: str): "import simplest._module; print(simplest._module.__file__)" ) - if sys.version_info < (3, 8, 7): # noqa: UP036 + if sys.version_info < (3, 8, 7): import distutils.sysconfig # pylint: disable=deprecated-module ext_suffix = distutils.sysconfig.get_config_var("EXT_SUFFIX")