Skip to content

chore(deps): update pre-commit hooks #1113

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 1 addition & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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: >-
Expand Down
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand All @@ -51,15 +51,15 @@ 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]
args: [--prose-wrap=always]
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: |
Expand Down Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
2 changes: 1 addition & 1 deletion tests/packages/importlib_editable/pkg/pmod_a.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ruff: noqa: I001, F401
# ruff: noqa: F401
# mypy: ignore-errors

# Level one import sibling
Expand Down
2 changes: 1 addition & 1 deletion tests/packages/importlib_editable/pkg/sub_a/pmod_b.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ruff: noqa: I001, F401
# ruff: noqa: F401
# mypy: ignore-errors

# Level two import sibling
Expand Down
2 changes: 1 addition & 1 deletion tests/packages/importlib_editable/pkg/sub_b/pmod_c.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ruff: noqa: I001, F401
# ruff: noqa: F401
# mypy: ignore-errors

# Level two import sibling
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ruff: noqa: I001, F401
# ruff: noqa: F401
# mypy: ignore-errors

# Level three import sibling
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ruff: noqa: I001, F401
# ruff: noqa: F401
# mypy: ignore-errors

# Level three import sibling
Expand Down
2 changes: 1 addition & 1 deletion tests/packages/importlib_editable/pmod.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ruff: noqa: I001, F401
# ruff: noqa: F401
# mypy: ignore-errors

# Level zero import global sibling
Expand Down
1 change: 0 additions & 1 deletion tests/test_skbuild_settings.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Comparison with empty strings okay for symmetry
# ruff: noqa: PLC1901

from __future__ import annotations

Expand Down
Loading