-
Notifications
You must be signed in to change notification settings - Fork 3
/
.pre-commit-config.yaml
46 lines (40 loc) · 1.3 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
repos:
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.14.0
hooks:
- id: pretty-format-yaml
args: [--autofix, --indent, '2']
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- id: requirements-txt-fixer
- repo: https://gitlab.com/daverona/pre-commit/cpp
rev: 0.8.0 # use the most recent version
hooks:
# Hooks using native
- id: clang-format # formatter for C/C++ code based on a style guide
args: [-style=Chromium] # use LLVM Coding Standards
# - id: cpplint # linter (or style-error checker) for Google C++ Style Guide
# - id: cppcheck # static analyzer for C/C++ code
- repo: https://github.com/pre-commit/mirrors-yapf
rev: v0.32.0
hooks:
- id: yapf
- repo: https://github.com/lovesegfault/beautysh
rev: v6.2.1
hooks:
- id: beautysh
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.42.0
hooks:
- id: markdownlint-fix
entry: markdownlint -f README.md --disable MD013 MD036 MD033 MD046
# args: [--disable MD013 MD036]
- repo: https://github.com/cheshirekow/cmake-format-precommit
rev: v0.6.13
hooks:
- id: cmake-format
# - id: cmake-lint