-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
52 lines (44 loc) · 1.49 KB
/
.pre-commit-config.yaml
File metadata and controls
52 lines (44 loc) · 1.49 KB
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
exclude: "^(src/kokkos)"
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.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
- id: check-added-large-files
args: ['--maxkb=100'] ## prevent files larger than 100kB from being commited (exclude git lfs files)
- 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/astral-sh/ruff-pre-commit
rev: v0.15.8
hooks:
- id: ruff-check
args: [--quiet, --fix, --show-fixes]
- repo: https://github.com/neutrinoceros/inifix
rev: v6.1.2
hooks:
- id: inifix-format
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.5
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/*]