diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 456f10707..efc78b723 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.11 + rev: v0.11.12 hooks: - id: ruff args: ["--fix", "--show-fixes"] @@ -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.15.0 + rev: v1.16.0 hooks: - id: mypy exclude: | @@ -128,7 +128,7 @@ repos: args: [docs/about/projects.md] pass_filenames: false language: python - additional_dependencies: [cogapp] + additional_dependencies: ["cogapp>=3.5"] - repo: https://github.com/henryiii/validate-pyproject-schema-store rev: 2025.05.12 diff --git a/docs/about/projects.md b/docs/about/projects.md index a89670d5c..471a74074 100644 --- a/docs/about/projects.md +++ b/docs/about/projects.md @@ -70,7 +70,7 @@ for project in projects["project"]: * [kiss-icp](https://pypi.org/project/kiss-icp) ([source](https://github.com/PRBonn/kiss-icp/blob/HEAD/python/pyproject.toml)) * [simsopt](https://pypi.org/project/simsopt) ([source](https://github.com/hiddenSymmetries/simsopt/blob/HEAD/pyproject.toml)) * [mqt-core](https://pypi.org/project/mqt-core) ([source](https://github.com/munich-quantum-toolkit/core/blob/HEAD/pyproject.toml)) - + diff --git a/pyproject.toml b/pyproject.toml index 6542b72f7..9441aae62 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -226,6 +226,7 @@ run.omit = ["src/scikit_build_core/_vendor"] run.disable_warnings = [ "module-not-measured", # Triggers in multithreaded context on build "no-sysmon", + "couldnt-parse", # site-customize is unparsable on latest GHA windows versions ] report.exclude_also = [ '\.\.\.', diff --git a/src/scikit_build_core/settings/documentation.py b/src/scikit_build_core/settings/documentation.py index 329efe462..2d7ea0dac 100644 --- a/src/scikit_build_core/settings/documentation.py +++ b/src/scikit_build_core/settings/documentation.py @@ -85,7 +85,7 @@ def get_display_type(field_type: type | str) -> str: if get_origin(field_type) is Annotated: # For annotated assume we always want the second item return get_display_type(get_args(field_type)[1]) - if field_type is typing.Any: # type: ignore[comparison-overlap] + if field_type is typing.Any: # Workaround for python<3.10 where typing.Any.__name__ does not evaluate return "Any" # Otherwise just get the formatted form of the `type` object