From ee1a837b46fbb9956c6bdcfcfb4959a8645324af Mon Sep 17 00:00:00 2001 From: shenxianpeng Date: Fri, 4 Jul 2025 23:11:05 +0300 Subject: [PATCH 1/2] fix: change require_serial to true --- .pre-commit-hooks.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index 4d40fed..741827b 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -4,6 +4,7 @@ entry: clang-format-hook language: python files: \.(h\+\+|h|hh|hxx|hpp|c|cc|cpp|c\+\+|cxx)$ + require_serial: true - id: clang-tidy name: clang-tidy @@ -11,3 +12,4 @@ entry: clang-tidy-hook language: python files: \.(h\+\+|h|hh|hxx|hpp|c|cc|cpp|c\+\+|cxx)$ + require_serial: true From 55a2d6ec81fd67a6bd9bc56ed00f80eb2077e597 Mon Sep 17 00:00:00 2001 From: shenxianpeng Date: Fri, 4 Jul 2025 23:13:42 +0300 Subject: [PATCH 2/2] chore: bump version to v0.8.3 --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 8162b8b..3be3194 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ Add this configuration to your `.pre-commit-config.yaml` file: ```yaml repos: - repo: https://github.com/cpp-linter/cpp-linter-hooks - rev: v0.8.1 # Use the tag or commit you want + rev: v0.8.3 # Use the tag or commit you want hooks: - id: clang-format args: [--style=Google] # Other coding style: LLVM, GNU, Chromium, Microsoft, Mozilla, WebKit. @@ -44,7 +44,7 @@ To use custom configurations like `.clang-format` and `.clang-tidy`: ```yaml repos: - repo: https://github.com/cpp-linter/cpp-linter-hooks - rev: v0.8.1 + rev: v0.8.3 hooks: - id: clang-format args: [--style=file] # Loads style from .clang-format file @@ -59,7 +59,7 @@ To use specific versions of [clang-tools](https://github.com/cpp-linter/clang-to ```yaml repos: - repo: https://github.com/cpp-linter/cpp-linter-hooks - rev: v0.8.1 + rev: v0.8.3 hooks: - id: clang-format args: [--style=file, --version=18] # Specifies version @@ -146,7 +146,7 @@ Use -header-filter=.* to display errors from all non-system headers. Use -system ```yaml - repo: https://github.com/cpp-linter/cpp-linter-hooks - rev: v0.8.1 + rev: v0.8.3 hooks: - id: clang-format args: [--style=file, --version=18] @@ -172,7 +172,7 @@ This approach ensures that only modified files are checked, further speeding up ```yaml repos: - repo: https://github.com/cpp-linter/cpp-linter-hooks - rev: v0.8.1 + rev: v0.8.3 hooks: - id: clang-format args: [--style=file, --version=18, --verbose] # Add -v or --verbose for detailed output