File tree 3 files changed +7
-26
lines changed
3 files changed +7
-26
lines changed Original file line number Diff line number Diff line change 9
9
- develop
10
10
11
11
jobs :
12
- pre-commit :
13
- name : Format
14
- runs-on : ubuntu-latest
15
- steps :
16
- - uses : actions/checkout@v1
17
- with :
18
- submodules : true
19
- - uses : actions/setup-python@v2
20
- -
uses :
pre-commit/[email protected]
21
- with :
22
- extra_args : -a docker-clang-format --hook-stage manual
23
-
24
12
clang-tidy :
25
13
name : Clang-Tidy
26
14
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 1
1
ci :
2
- skip :
3
- - docker-clang-format
2
+ autoupdate_commit_msg : " chore: update pre-commit hooks "
3
+ autofix_commit_msg : " style: pre-commit fixes "
4
4
5
5
repos :
6
6
- repo : https://github.com/psf/black
@@ -81,14 +81,7 @@ repos:
81
81
entry : PyBind|Numpy|Cmake|CCache|Github|PyTest
82
82
exclude : .pre-commit-config.yaml
83
83
84
- - repo : local
84
+ - repo : https://github.com/ssciwr/clang-format-precommit
85
+ rev : v12.0.1
85
86
hooks :
86
- - id : docker-clang-format
87
- name : Docker Clang Format
88
- language : docker_image
89
- types :
90
- - c++
91
- entry : unibeautify/clang-format:latest
92
- args :
93
- - -style=file
94
- - -i
87
+ - id : clang-format
Original file line number Diff line number Diff line change 60
60
#include < vector>
61
61
62
62
template <class T ,
63
- class = decltype(
64
- std::declval<T&>().serialize(std::declval<std:: nullptr_t &>(), 0 ))>
63
+ class = decltype(std::declval<T&>().serialize(std::declval<std:: nullptr_t &>(),
64
+ 0 ))>
65
65
struct has_method_serialize_impl {};
66
66
67
67
template <class T >
You can’t perform that action at this time.
0 commit comments