Skip to content
Merged
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
6 changes: 3 additions & 3 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.8.1
rev: v0.8.6
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.4.1"
rev: "v3.4.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.13.0
rev: v1.14.1
hooks:
- id: mypy
exclude: |
Expand Down
2 changes: 1 addition & 1 deletion tests/test_cmake_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
3 changes: 2 additions & 1 deletion tests/test_setuptools_pep517.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,15 @@
def test_pep517_sdist():
correct_metadata = textwrap.dedent(
"""\
Metadata-Version: 2.1
Name: cmake-example
Version: 0.0.1
Requires-Python: >=3.7
Provides-Extra: test
"""
# 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())

Expand Down
Loading