Skip to content

Commit b55bff2

Browse files
authored
Merge branch 'main' into add-workflow-to-test-cpython
2 parents adcb858 + 0134570 commit b55bff2

File tree

3 files changed

+20
-6
lines changed

3 files changed

+20
-6
lines changed

.github/workflows/codspeed.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,20 @@ name: CodSpeed
33
on:
44
push:
55
branches:
6-
- "main" # or "master"
6+
- "main"
7+
paths:
8+
- "cpp-linter-hooks/**"
9+
- "tests/**"
10+
- ".github/workflows/codspeed.yml"
11+
- "pyproject.toml"
712
pull_request:
13+
branches:
14+
- "main"
15+
paths:
16+
- "cpp-linter-hooks/**"
17+
- "tests/**"
18+
- ".github/workflows/codspeed.yml"
19+
- "pyproject.toml"
820
# `workflow_dispatch` allows CodSpeed to trigger backtest
921
# performance analysis in order to generate initial data.
1022
workflow_dispatch:

.pre-commit-hooks.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@
44
entry: clang-format-hook
55
language: python
66
files: \.(h\+\+|h|hh|hxx|hpp|c|cc|cpp|c\+\+|cxx)$
7+
require_serial: true
78

89
- id: clang-tidy
910
name: clang-tidy
1011
description: Automatically install any specific version of clang-tidy and diagnose/fix typical programming errors
1112
entry: clang-tidy-hook
1213
language: python
1314
files: \.(h\+\+|h|hh|hxx|hpp|c|cc|cpp|c\+\+|cxx)$
15+
require_serial: true

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Add this configuration to your `.pre-commit-config.yaml` file:
2929
```yaml
3030
repos:
3131
- repo: https://github.com/cpp-linter/cpp-linter-hooks
32-
rev: v0.8.1 # Use the tag or commit you want
32+
rev: v0.8.3 # Use the tag or commit you want
3333
hooks:
3434
- id: clang-format
3535
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`:
4444
```yaml
4545
repos:
4646
- repo: https://github.com/cpp-linter/cpp-linter-hooks
47-
rev: v0.8.1
47+
rev: v0.8.3
4848
hooks:
4949
- id: clang-format
5050
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
5959
```yaml
6060
repos:
6161
- repo: https://github.com/cpp-linter/cpp-linter-hooks
62-
rev: v0.8.1
62+
rev: v0.8.3
6363
hooks:
6464
- id: clang-format
6565
args: [--style=file, --version=18] # Specifies version
@@ -146,7 +146,7 @@ Use -header-filter=.* to display errors from all non-system headers. Use -system
146146

147147
```yaml
148148
- repo: https://github.com/cpp-linter/cpp-linter-hooks
149-
rev: v0.8.1
149+
rev: v0.8.3
150150
hooks:
151151
- id: clang-format
152152
args: [--style=file, --version=18]
@@ -172,7 +172,7 @@ This approach ensures that only modified files are checked, further speeding up
172172
```yaml
173173
repos:
174174
- repo: https://github.com/cpp-linter/cpp-linter-hooks
175-
rev: v0.8.1
175+
rev: v0.8.3
176176
hooks:
177177
- id: clang-format
178178
args: [--style=file, --version=18, --verbose] # Add -v or --verbose for detailed output

0 commit comments

Comments
 (0)