-
Notifications
You must be signed in to change notification settings - Fork 44
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
58 lines (45 loc) · 1.43 KB
/
.pre-commit-config.yaml
File metadata and controls
58 lines (45 loc) · 1.43 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
stages: [pre-commit]
- id: end-of-file-fixer
stages: [pre-commit]
- id: check-yaml
files: ^\.pre-commit-config.yaml$
stages: [pre-commit]
- id: check-yaml
args: [--unsafe]
files: ^\.gitlab.*\.yml$
stages: [pre-commit]
- id: file-contents-sorter
args: [--unique]
files: \.gitattributes$
stages: [pre-commit]
- id: check-executables-have-shebangs
stages: [pre-commit]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.11.13
hooks:
- id: ruff-check
args: [--exit-non-zero-on-fix, --fix, --show-fixes]
stages: [pre-commit]
# run by CI only, to get code quality report
- id: ruff-check
args: [--exit-zero, --output-file, code-quality-ruff.json, --output-format, gitlab]
stages: [manual]
- repo: https://git.ligo.org/lscsoft/lalsuite-code-quality.git
rev: v0.6
hooks:
- id: remove-executable-bits
exclude: 00boot$|common/|conda/|debian/|gnuscripts/
stages: [pre-commit]
- id: fix-makefile-indents
stages: [pre-commit]
- id: fix-gitignore-entries
stages: [pre-commit]
- id: fix-mailmap-authors
stages: [pre-commit]
- id: make-code-pretty
stages: [pre-commit]