-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
40 lines (34 loc) · 956 Bytes
/
.pre-commit-config.yaml
File metadata and controls
40 lines (34 loc) · 956 Bytes
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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
hooks:
- id: end-of-file-fixer
name: Fix End of Files
files: \.(c|h|py)$
- id: trailing-whitespace
name: Trim Trailing Whitespace
files: \.(c|h|py)$
- id: check-yaml
name: Check YAML syntax
files: \.ya?ml$
- id: check-executables-have-shebangs
name: Check for shebangs in executables
files: tests/.sh$
- repo: https://github.com/psf/black
rev: 23.11.0
hooks:
- id: black
name: Check Python with linter
files: tests/.py$
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.9.0.3
hooks:
- id: shellcheck
name: Check shell scripts
files: tests/.sh$
- repo: https://github.com/mrtazz/checkmake
rev: 0.2.2
hooks:
- id: checkmake
name: Check Makefile (+lint)
files: Makefile