From 00c2ec393bd30af61c06f826a2a3172b6b5d09db Mon Sep 17 00:00:00 2001 From: shenxianpeng Date: Tue, 1 Jul 2025 22:51:09 +0300 Subject: [PATCH] chore: add pragma: no cover to ignore test --- cpp_linter_hooks/clang_format.py | 2 +- cpp_linter_hooks/clang_tidy.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cpp_linter_hooks/clang_format.py b/cpp_linter_hooks/clang_format.py index cd0eb91..623cdf7 100644 --- a/cpp_linter_hooks/clang_format.py +++ b/cpp_linter_hooks/clang_format.py @@ -33,7 +33,7 @@ def run_clang_format(args=None) -> Tuple[int, str]: def main() -> int: retval, output = run_clang_format() if retval != 0: - print(output) + print(output) # pragma: no cover return retval diff --git a/cpp_linter_hooks/clang_tidy.py b/cpp_linter_hooks/clang_tidy.py index 2a51334..63cefbc 100644 --- a/cpp_linter_hooks/clang_tidy.py +++ b/cpp_linter_hooks/clang_tidy.py @@ -32,7 +32,7 @@ def run_clang_tidy(args=None) -> Tuple[int, str]: def main() -> int: retval, output = run_clang_tidy() if retval != 0: - print(output) + print(output) # pragma: no cover return retval