From 512f196e25ec0376a28479d8deaa72c697b5cd63 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 4 May 2026 21:27:42 +0000 Subject: [PATCH 1/2] chore(deps): update pre-commit hooks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/pre-commit/mirrors-clang-format: v22.1.2 → v22.1.4](https://github.com/pre-commit/mirrors-clang-format/compare/v22.1.2...v22.1.4) - [github.com/astral-sh/ruff-pre-commit: v0.15.9 → v0.15.12](https://github.com/astral-sh/ruff-pre-commit/compare/v0.15.9...v0.15.12) - [github.com/pre-commit/mirrors-mypy: v1.20.0 → v1.20.2](https://github.com/pre-commit/mirrors-mypy/compare/v1.20.0...v1.20.2) - [github.com/adhtruong/mirrors-typos: v1.45.0 → v1.46.0](https://github.com/adhtruong/mirrors-typos/compare/v1.45.0...v1.46.0) - [github.com/python-jsonschema/check-jsonschema: 0.37.1 → 0.37.2](https://github.com/python-jsonschema/check-jsonschema/compare/0.37.1...0.37.2) --- .pre-commit-config.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 637dc3f94f..e97448d155 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -25,14 +25,14 @@ repos: # Clang format the codebase automatically - repo: https://github.com/pre-commit/mirrors-clang-format - rev: "v22.1.2" + rev: "v22.1.4" hooks: - id: clang-format types_or: [c++, c, cuda] # Ruff, the Python auto-correcting linter/formatter written in Rust - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.15.9 + rev: v0.15.12 hooks: - id: ruff-check args: ["--fix", "--show-fixes"] @@ -40,7 +40,7 @@ repos: # Check static types with mypy - repo: https://github.com/pre-commit/mirrors-mypy - rev: "v1.20.0" + rev: "v1.20.2" hooks: - id: mypy args: [] @@ -122,7 +122,7 @@ repos: # Use mirror because pre-commit autoupdate confuses tags in the upstream repo. # See https://github.com/crate-ci/typos/issues/390 - repo: https://github.com/adhtruong/mirrors-typos - rev: "v1.45.0" + rev: "v1.46.0" hooks: - id: typos args: [] @@ -151,7 +151,7 @@ repos: # Check schemas on some of our YAML files - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.37.1 + rev: 0.37.2 hooks: - id: check-readthedocs - id: check-github-workflows From 74b798d7afdf0fd69c8caf61ede2efdc708fce29 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Wed, 13 May 2026 17:31:23 -0700 Subject: [PATCH 2/2] fix: correct detailed error message comment wording Clarify when detailed error messages are enabled and remove the typo caught by typos. --- include/pybind11/detail/common.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/pybind11/detail/common.h b/include/pybind11/detail/common.h index 7dc278ea27..e22763c99e 100644 --- a/include/pybind11/detail/common.h +++ b/include/pybind11/detail/common.h @@ -1410,9 +1410,9 @@ constexpr // std::move(args) #endif -// Pybind offers detailed error messages by default for all builts that are debug (through the -// negation of NDEBUG). This can also be manually enabled by users, for any builds, through -// defining PYBIND11_DETAILED_ERROR_MESSAGES. This information is primarily useful for those +// Pybind offers detailed error messages by default in debug builds (through the negation of +// NDEBUG). This can also be manually enabled by users for any build by defining +// PYBIND11_DETAILED_ERROR_MESSAGES. This information is primarily useful for those // who are writing (as opposed to merely using) libraries that use pybind11. #if !defined(PYBIND11_DETAILED_ERROR_MESSAGES) && !defined(NDEBUG) # define PYBIND11_DETAILED_ERROR_MESSAGES