Skip to content

Commit bf40c44

Browse files
author
user01
committed
[lint] use pre-commit to auto check and lint
1 parent da4ec89 commit bf40c44

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.pre-commit-config.yaml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,19 @@ repos:
33
rev: v4.5.0
44
hooks:
55
- id: trailing-whitespace
6+
- repo: https://github.com/pre-commit/mirrors-yapf
7+
rev: 'v0.32.0'
8+
hooks:
9+
- id: yapf
610
- repo: https://github.com/pycqa/flake8
711
rev: '3.8.2'
812
hooks:
913
- id: flake8
10-
- repo: https://github.com/pre-commit/mirrors-yapf
11-
rev: 'v0.32.0'
14+
- repo: https://github.com/pre-commit/mirrors-clang-format
15+
rev: 'v17.0.6'
1216
hooks:
13-
- id: yapf
14-
- repo: https://gitlab.com/daverona/pre-commit/cpp
15-
rev: '0.8.0'
17+
- id: clang-format
18+
- repo: https://github.com/cpplint/cpplint
19+
rev: '1.6.1'
1620
hooks:
1721
- id: cpplint
18-
- id: clang-format

0 commit comments

Comments
 (0)