forked from idefix-code/idefix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
59 lines (51 loc) · 1.61 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
57
58
59
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.6.9
hooks:
- id: ruff
args:
- --quiet
- --fix
- --select
- F # pyflakes
- B # flake8-bugbear
- I # isort
- NPY # numpy-specific rules
- repo: https://github.com/neutrinoceros/inifix
rev: v5.0.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/*]