diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8c1edc01..0bdfa010 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -57,7 +57,7 @@ jobs: cmake-version: ["3.15.x"] include: - - python-version: "pypy-3.8" + - python-version: "pypy-3.9" runs-on: windows-2022 cmake-version: "3.21.x" - python-version: "3.11" @@ -85,7 +85,7 @@ jobs: runs-on: ubuntu-latest cmake-version: "3.26.x" - python-version: "3.8" - runs-on: windows-2019 + runs-on: windows-2022 cmake-version: "3.24.x" - python-version: "3.12" runs-on: windows-latest @@ -121,21 +121,13 @@ jobs: ${{ matrix.python-version == '3.13' && runner.os == 'Windows' }} - uses: astral-sh/setup-uv@v6 - if: matrix.python-version != 'pypy-3.8' - name: Install package (uv) - if: matrix.python-version != 'pypy-3.8' run: uv pip install -e.[test,test-meta,test-numpy,test-schema,test-hatchling,wheels,cov,wheel-free-setuptools] --system - - name: Install package (pip) - if: matrix.python-version == 'pypy-3.8' - run: - pip install - -e.[test,test-meta,test-numpy,test-schema,wheels,cov,wheel-free-setuptools] - - name: Test package if: "!contains(matrix.python_version, 'pypy')" run: >- diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index efc78b72..473cc04a 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.11.12 + rev: v0.12.2 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.5.3" + rev: "v3.6.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.16.0 + rev: v1.16.1 hooks: - id: mypy exclude: | @@ -131,12 +131,12 @@ repos: additional_dependencies: ["cogapp>=3.5"] - repo: https://github.com/henryiii/validate-pyproject-schema-store - rev: 2025.05.12 + rev: 2025.06.23 hooks: - id: validate-pyproject - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.33.0 + rev: 0.33.2 hooks: - id: check-dependabot - id: check-github-workflows diff --git a/pyproject.toml b/pyproject.toml index 9441aae6..ddb9543e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -323,6 +323,7 @@ known-local-folder = ["pathutils"] "noxfile.py" = ["T20", "TID251"] "src/scikit_build_core/resources/*.py" = ["PTH", "ARG002", "FBT", "TID251"] "src/scikit_build_core/_compat/**.py" = ["TID251"] +"src/scikit_build_core/settings/**.py" = ["FBT001"] "tests/conftest.py" = ["TID251"] "tests/packages/**.py" = ["TID251"] "docs/conf.py" = ["TID251"] diff --git a/tests/packages/importlib_editable/pkg/pmod_a.py b/tests/packages/importlib_editable/pkg/pmod_a.py index c84f2b71..a723e7d5 100644 --- a/tests/packages/importlib_editable/pkg/pmod_a.py +++ b/tests/packages/importlib_editable/pkg/pmod_a.py @@ -1,4 +1,4 @@ -# ruff: noqa: I001, F401 +# ruff: noqa: F401 # mypy: ignore-errors # Level one import sibling diff --git a/tests/packages/importlib_editable/pkg/sub_a/pmod_b.py b/tests/packages/importlib_editable/pkg/sub_a/pmod_b.py index d1e1290a..55f4d454 100644 --- a/tests/packages/importlib_editable/pkg/sub_a/pmod_b.py +++ b/tests/packages/importlib_editable/pkg/sub_a/pmod_b.py @@ -1,4 +1,4 @@ -# ruff: noqa: I001, F401 +# ruff: noqa: F401 # mypy: ignore-errors # Level two import sibling diff --git a/tests/packages/importlib_editable/pkg/sub_b/pmod_c.py b/tests/packages/importlib_editable/pkg/sub_b/pmod_c.py index ca62c140..3fed3b13 100644 --- a/tests/packages/importlib_editable/pkg/sub_b/pmod_c.py +++ b/tests/packages/importlib_editable/pkg/sub_b/pmod_c.py @@ -1,4 +1,4 @@ -# ruff: noqa: I001, F401 +# ruff: noqa: F401 # mypy: ignore-errors # Level two import sibling diff --git a/tests/packages/importlib_editable/pkg/sub_b/sub_c/pmod_d.py b/tests/packages/importlib_editable/pkg/sub_b/sub_c/pmod_d.py index ea36e2de..36da2f06 100644 --- a/tests/packages/importlib_editable/pkg/sub_b/sub_c/pmod_d.py +++ b/tests/packages/importlib_editable/pkg/sub_b/sub_c/pmod_d.py @@ -1,4 +1,4 @@ -# ruff: noqa: I001, F401 +# ruff: noqa: F401 # mypy: ignore-errors # Level three import sibling diff --git a/tests/packages/importlib_editable/pkg/sub_b/sub_d/pmod_e.py b/tests/packages/importlib_editable/pkg/sub_b/sub_d/pmod_e.py index ab44cd5d..4dbffb5a 100644 --- a/tests/packages/importlib_editable/pkg/sub_b/sub_d/pmod_e.py +++ b/tests/packages/importlib_editable/pkg/sub_b/sub_d/pmod_e.py @@ -1,4 +1,4 @@ -# ruff: noqa: I001, F401 +# ruff: noqa: F401 # mypy: ignore-errors # Level three import sibling diff --git a/tests/packages/importlib_editable/pmod.py b/tests/packages/importlib_editable/pmod.py index ee44ae39..38038ce0 100644 --- a/tests/packages/importlib_editable/pmod.py +++ b/tests/packages/importlib_editable/pmod.py @@ -1,4 +1,4 @@ -# ruff: noqa: I001, F401 +# ruff: noqa: F401 # mypy: ignore-errors # Level zero import global sibling diff --git a/tests/test_skbuild_settings.py b/tests/test_skbuild_settings.py index 2aff167a..4f92b62d 100644 --- a/tests/test_skbuild_settings.py +++ b/tests/test_skbuild_settings.py @@ -1,5 +1,4 @@ # Comparison with empty strings okay for symmetry -# ruff: noqa: PLC1901 from __future__ import annotations