From 4a38112745e4e0b6238c5efbd909c20dadcd0c11 Mon Sep 17 00:00:00 2001 From: dietmarkuehl <1319703+dietmarkuehl@users.noreply.github.com> Date: Sun, 15 Mar 2026 16:47:30 +0000 Subject: [PATCH] Auto-update pre-commit hooks --- .pre-commit-config.yaml | 6 +++--- tests/beman/task/promise_type.test.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d3e1a04..905ade9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -13,7 +13,7 @@ repos: # Config file: .codespellrc - repo: https://github.com/codespell-project/codespell - rev: v2.4.1 + rev: v2.4.2 hooks: - id: codespell files: ^.*\.(cmake|cpp|cppm|hpp|txt|md|mds|json|js|in|yaml|yml|py|toml)$ @@ -24,7 +24,7 @@ repos: # See also: https://github.com/ssciwr/clang-format-wheel # Config file: .clang-format - repo: https://github.com/pre-commit/mirrors-clang-format - rev: v21.1.8 + rev: v22.1.1 hooks: - id: clang-format types_or: [c++, c, json, javascript] @@ -32,7 +32,7 @@ repos: # CMake linting and formatting - repo: https://github.com/BlankSpruce/gersemi - rev: 0.26.0 + rev: 0.26.1 hooks: - id: gersemi name: CMake linting diff --git a/tests/beman/task/promise_type.test.cpp b/tests/beman/task/promise_type.test.cpp index 23dca45..a6c002b 100644 --- a/tests/beman/task/promise_type.test.cpp +++ b/tests/beman/task/promise_type.test.cpp @@ -49,7 +49,7 @@ struct thread_pool { std::unique_lock cerberus(mutex); condition.wait(cerberus, [this] { return stopped || stack; }); return this->stack ? std::optional(std::exchange(this->stack, this->stack->next)) - : std::optional(); + : std::optional(); }()) { (*n)->run(); }