File tree Expand file tree Collapse file tree 4 files changed +15
-4
lines changed Expand file tree Collapse file tree 4 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ result.txt
1313testing /main.c
1414* /* compile_commands.json
1515testing /benchmark_results.txt
16- testing /test-examples /
16+ testing /test-examples /*
1717
1818# Ignore Python wheel packages (clang-format, clang-tidy)
1919clang-tidy-1 *
Original file line number Diff line number Diff line change 1+ repos :
2+ - repo : https://github.com/pre-commit/pre-commit-hooks
3+ rev : v1.1.0
4+ hooks :
5+ - id : clang-format
6+ args : [--style=file, --version=21]
Original file line number Diff line number Diff line change 1+ repos :
2+ - repo : https://github.com/pre-commit/mirrors-clang-format
3+ rev : v21.1.0
4+ hooks :
5+ - id : clang-format
Original file line number Diff line number Diff line change 2121HOOKS = [
2222 {
2323 "name" : "cpp-linter-hooks" ,
24- "config" : "testing/pre-commit-config-cpp-linter-hooks .yaml" ,
24+ "config" : "testing/benchmark_hook_1 .yaml" ,
2525 },
2626 {
2727 "name" : "mirrors-clang-format" ,
28- "config" : "testing/pre-commit-config-mirrors-clang-format .yaml" ,
28+ "config" : "testing/benchmark_hook_2 .yaml" ,
2929 },
3030]
3131
@@ -84,7 +84,7 @@ def benchmark():
8484 results = {}
8585 for hook in HOOKS :
8686 times = []
87- print (f"Benchmarking { hook ['name' ]} ..." )
87+ print (f"\n Benchmarking { hook ['name' ]} ..." )
8888 for i in range (REPEATS ):
8989 safe_git_restore (TARGET_FILES )
9090 subprocess .run (["pre-commit" , "clean" ])
You can’t perform that action at this time.
0 commit comments