forked from vdbma/idefox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
56 lines (48 loc) · 1.44 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
47
48
49
50
51
52
53
54
55
56
exclude: "^(src/kokkos)"
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: trailing-whitespace # auto-fix trailing whitespaces
- id: end-of-file-fixer # add EOF "\n" if missing
#- id: no-commit-to-branch # forbid direct commits to master # suspend this since it fails CIs on master with github
- id: check-merge-conflict
- id: check-yaml
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- repo: https://github.com/Lucas-C/pre-commit-hooks-nodejs
rev: v1.1.2
hooks:
- id: markdown-toc
files: README.md
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.128
hooks:
- id: ruff
args:
- --quiet
- --fix
- --select
- F # pyflakes
- B # flake8-bugbear
- I # isort
- repo: https://github.com/neutrinoceros/inifix
rev: v3.0.0
hooks:
- id: inifix-format
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.3.1
hooks:
- id: remove-tabs # auto-fix tab/space mixing
- id: insert-license
files: ^(src/).*\.(hpp|cpp)$
args:
- --license-filepath
- src/license_header.txt
- --comment-style
- //
- repo: https://gitlab.com/daverona/pre-commit/cpp
rev: 0.8.0
hooks:
- id: cpplint
args: [--counting=detailed, --exclude=test/*]