forked from doudar/SmartSpin2k
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.oldyaml
40 lines (40 loc) · 1.6 KB
/
.pre-commit-config.oldyaml
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
exclude: (\.pio|lib/NimBLE-Arduino|lib/ArduinoCompat)/.*
repos:
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.1.9
hooks:
- id: insert-license
files: \.(h\+\+|h|hh|hxx|hpp|cuh|c|cc|cpp|cu|c\+\+|cxx|tpp|txx)$
args:
- --license-filepath
- license_header.txt
- --comment-style
- /*| *| */
- repo: local
hooks:
- id: docker-validate-changelog
name: validate-changelog
description: Validate the `CHANGELOG.md` file
files: CHANGELOG\.md$
pass_filenames: false
language: docker_image
entry: kadaan/parse_a_changelog:latest
- id: docker-clang-format
name: clang-format
description: Run `clang-format` against C/C++ header and source files in Docker container
language: docker_image
files: \.(h\+\+|h|hh|hxx|hpp|cuh|c|cc|cpp|cu|c\+\+|cxx|tpp|txx)$
entry: daverona/pre-commit-cpp:0.8.0 clang-format -i -style=file
- id: docker-cpplint
name: cpplint
description: Run `cpplint` against C/C++ header and source files in Docker container
language: docker_image
files: \.(h\+\+|h|hh|hxx|hpp|cuh|c|cc|cpp|cu|c\+\+|cxx|tpp|txx)$
entry: daverona/pre-commit-cpp:0.8.0 cpplint
- id: docker-pio
name: pio
description: Run platformio check, test, and build C/C++ source files in Docker container
language: docker_image
files: \.(h\+\+|h|hh|hxx|hpp|cuh|c|cc|cpp|cu|c\+\+|cxx|tpp|txx)$
pass_filenames: false
entry: kadaan/platformio_esp32:latest --check --test=native