Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update pre-commit #31

Merged
merged 3 commits into from
Apr 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"
18 changes: 9 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,17 @@ jobs:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: "recursive"
- uses: actions/setup-python@v3
- uses: actions/setup-python@v5
with:
python-version: "3.10"
python-version: "3.12"
- name: Build & test
run: |
mkdir build && cd build
cmake -DBUILD_TESTING=ON -DCMAKE_BUILD_TYPE=Release ..
cmake --build . --config Release -j 3
cmake --build . --config Release -j 4
ctest
- name: Run benchmark and plot results
run: |
Expand All @@ -48,24 +48,24 @@ jobs:
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: "recursive"
- uses: actions/setup-python@v3
- uses: actions/setup-python@v5
with:
python-version: "3.10"
python-version: "3.12"
- run: pip install gcovr
- name: Build & test
run: |
mkdir build && cd build
cmake -DBUILD_TESTING=ON -DCPPBENCH_BUILD_BENCHMARKS=OFF -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS="--coverage" ..
cmake --build . -j 3
cmake --build . -j 4
ctest
- name: Generate coverage report
run: |
gcovr --exclude-throw-branches -r . -f include/ --xml -o coverage.xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
uses: codecov/codecov-action@v4
with:
files: ./coverage.xml
verbose: true
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.6.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
Expand All @@ -11,15 +11,15 @@ repos:
rev: v0.6.13
hooks:
- id: cmake-format
additional_dependencies: [pyyaml==5.4.1]
additional_dependencies: [pyyaml]

- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v16.0.6
rev: v18.1.3
hooks:
- id: clang-format

- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.0-alpha.9-for-vscode
rev: v4.0.0-alpha.8
hooks:
- id: prettier
exclude_types: [json]
Expand All @@ -30,7 +30,7 @@ repos:
- id: beautysh

- repo: https://github.com/psf/black
rev: 23.3.0
rev: 24.3.0
hooks:
- id: black
ci:
Expand Down
2 changes: 1 addition & 1 deletion ext/benchmark
Submodule benchmark updated 77 files
+0 −7 .clang-tidy
+5 −53 .github/workflows/build-and-test-perfcounters.yml
+2 −41 .github/workflows/build-and-test.yml
+0 −17 .github/workflows/clang-format-lint.yml
+0 −38 .github/workflows/clang-tidy.yml
+0 −26 .github/workflows/doxygen.yml
+13 −88 .github/workflows/wheels.yml
+0 −3 AUTHORS
+2 −0 BUILD.bazel
+8 −37 CMakeLists.txt
+0 −2 CONTRIBUTORS
+11 −4 WORKSPACE
+1 −1 bindings/python/google_benchmark/__init__.py
+0 −6 cmake/Config.cmake.in
+4 −8 cmake/GoogleTest.cmake
+2 −3 cmake/GoogleTest.cmake.in
+5 −6 docs/dependencies.md
+3 −16 docs/releasing.md
+3 −42 docs/user_guide.md
+57 −127 include/benchmark/benchmark.h
+0 −1 requirements.txt
+0 −3 setup.py
+27 −62 src/CMakeLists.txt
+18 −25 src/benchmark.cc
+0 −18 src/benchmark_api_internal.cc
+0 −6 src/benchmark_api_internal.h
+4 −17 src/benchmark_register.cc
+2 −2 src/benchmark_register.h
+6 −17 src/benchmark_runner.cc
+0 −2 src/benchmark_runner.h
+0 −7 src/check.h
+3 −3 src/colorprint.cc
+3 −2 src/commandlineflags.cc
+2 −3 src/complexity.cc
+16 −16 src/console_reporter.cc
+6 −9 src/csv_reporter.cc
+2 −2 src/cycleclock.h
+2 −16 src/json_reporter.cc
+1 −1 src/perf_counters.cc
+6 −4 src/reporter.cc
+3 −2 src/sleep.cc
+2 −3 src/statistics.cc
+13 −10 src/string_util.cc
+4 −8 src/string_util.h
+32 −31 src/sysinfo.cc
+1 −0 src/thread_manager.h
+16 −22 src/timers.cc
+0 −1 test/BUILD
+0 −6 test/CMakeLists.txt
+4 −4 test/args_product_test.cc
+14 −42 test/basic_test.cc
+2 −2 test/benchmark_random_interleaving_gtest.cc
+0 −157 test/benchmark_setup_teardown_test.cc
+3 −5 test/benchmark_test.cc
+1 −0 test/clobber_memory_assembly_test.cc
+7 −9 test/complexity_test.cc
+4 −3 test/cxx03_test.cc
+3 −3 test/diagnostics_test.cc
+5 −3 test/donotoptimize_assembly_test.cc
+6 −7 test/donotoptimize_test.cc
+1 −1 test/filter_test.cc
+3 −3 test/fixture_test.cc
+0 −1 test/internal_threading_test.cc
+2 −2 test/map_test.cc
+4 −4 test/multiple_ranges_test.cc
+4 −3 test/options_test.cc
+4 −2 test/output_test.h
+20 −13 test/output_test_helper.cc
+1 −1 test/perf_counters_gtest.cc
+2 −2 test/register_benchmark_test.cc
+1 −1 test/reporter_output_test.cc
+1 −2 test/skip_with_error_test.cc
+0 −95 test/spec_arg_test.cc
+79 −70 test/string_util_gtest.cc
+2 −2 test/templated_fixture_test.cc
+1 −1 test/user_counters_test.cc
+18 −108 tools/gbench/report.py
Loading