diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4a8637c1..dc437cd4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,7 +5,7 @@ ci: fail_fast: false repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.6.0 + rev: v5.0.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer @@ -19,7 +19,7 @@ repos: - id: detect-private-key - id: fix-byte-order-marker - repo: https://github.com/pre-commit/mirrors-clang-format - rev: v18.1.8 + rev: v20.1.0 hooks: - id: clang-format exclude_types: [json] diff --git a/tests/test_logging.cpp b/tests/test_logging.cpp index 449954ec..f669266d 100644 --- a/tests/test_logging.cpp +++ b/tests/test_logging.cpp @@ -16,12 +16,13 @@ struct CapturedLog { using LogStorage = std::vector; static void logger_callback(const TCODFOV_LogMessage* message, void* userdata) { - static_cast(userdata)->push_back(CapturedLog{ - message->message, - message->level, - message->source, - message->lineno, - }); + static_cast(userdata)->push_back( + CapturedLog{ + message->message, + message->level, + message->source, + message->lineno, + }); } TEST_CASE("Logging tests") {