forked from idefix-code/idefix
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
58 lines (50 loc) · 1.57 KB
/
.pre-commit-config.yaml
File metadata and controls
58 lines (50 loc) · 1.57 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
53
54
55
56
57
58
exclude: "^(src/kokkos)"
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.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.0.278
hooks:
- id: ruff
args:
- --quiet
- --fix
- --select
- F # pyflakes
- B # flake8-bugbear
- I # isort
- repo: https://github.com/neutrinoceros/inifix
rev: v4.4.0
hooks:
- id: inifix-format
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.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/*]