Skip to content

Commit e4e92bc

Browse files
chore(deps): update pre-commit hooks (#965)
<!--pre-commit.ci start--> updates: - [github.com/astral-sh/ruff-pre-commit: v0.8.1 → v0.8.6](astral-sh/ruff-pre-commit@v0.8.1...v0.8.6) - [github.com/rbubley/mirrors-prettier: v3.4.1 → v3.4.2](rbubley/mirrors-prettier@v3.4.1...v3.4.2) - [github.com/pre-commit/mirrors-mypy: v1.13.0 → v1.14.1](pre-commit/mirrors-mypy@v1.13.0...v1.14.1) <!--pre-commit.ci end--> --------- Signed-off-by: Henry Schreiner <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Henry Schreiner <[email protected]>
1 parent 241c63b commit e4e92bc

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ repos:
2525
exclude: "^tests"
2626

2727
- repo: https://github.com/astral-sh/ruff-pre-commit
28-
rev: v0.8.1
28+
rev: v0.8.6
2929
hooks:
3030
- id: ruff
3131
args: ["--fix", "--show-fixes"]
@@ -51,15 +51,15 @@ repos:
5151
exclude: ^src/scikit_build_core/resources/find_python
5252

5353
- repo: https://github.com/rbubley/mirrors-prettier
54-
rev: "v3.4.1"
54+
rev: "v3.4.2"
5555
hooks:
5656
- id: prettier
5757
types_or: [yaml, markdown, html, css, scss, javascript, json]
5858
args: [--prose-wrap=always]
5959
exclude: "^tests|src/scikit_build_core/resources/scikit-build.schema.json|^docs/projects.md"
6060

6161
- repo: https://github.com/pre-commit/mirrors-mypy
62-
rev: v1.13.0
62+
rev: v1.14.1
6363
hooks:
6464
- id: mypy
6565
exclude: |

tests/test_cmake_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def generator(
5757
else:
5858
monkeypatch.setenv("CMAKE_GENERATOR", request.param)
5959

60-
return request.param
60+
return request.param # type: ignore[no-any-return]
6161

6262

6363
def configure_args(

tests/test_setuptools_pep517.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,15 @@
1515
def test_pep517_sdist():
1616
correct_metadata = textwrap.dedent(
1717
"""\
18-
Metadata-Version: 2.1
1918
Name: cmake-example
2019
Version: 0.0.1
2120
Requires-Python: >=3.7
2221
Provides-Extra: test
2322
"""
2423
# TODO: why is this missing?
2524
# Requires-Dist: pytest>=6.0; extra == "test"
25+
# This was removed in https://github.com/pypa/setuptools/pull/4698 as part of 2.2 support:
26+
# Metadata-Version: 2.1
2627
)
2728
metadata_set = set(correct_metadata.strip().splitlines())
2829

0 commit comments

Comments
 (0)