-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
57 lines (51 loc) · 1.51 KB
/
.pre-commit-config.yaml
File metadata and controls
57 lines (51 loc) · 1.51 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
# Pre-commit hooks for code quality
# Uses prek (https://github.com/j178/prek) - a faster pre-commit alternative
repos:
- repo: builtin
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-toml
- id: check-merge-conflict
- id: detect-private-key
# Shell script linting
- repo: https://github.com/koalaman/shellcheck-precommit
rev: 99470f5e12208ff0fb17ab81c3c494f7620a1d8d # frozen: v0.11.0
hooks:
- id: shellcheck
args: [--severity=error]
# GitHub Actions linting
- repo: https://github.com/rhysd/actionlint
rev: 0933c147c9d6587653d45fdcb4c497c57a65f9af # frozen: v1.7.10
hooks:
- id: actionlint
# GitHub Actions security audit
- repo: https://github.com/zizmorcore/zizmor-pre-commit
rev: b546b77c44c466a54a42af5499dcc0dcc1a3193f # frozen: v1.22.0
hooks:
- id: zizmor
args: [--persona=regular, --min-severity=medium, --min-confidence=medium]
- repo: local
hooks:
- id: format
name: format code
entry: make format
language: system
types: [python]
pass_filenames: false
- id: lint
name: lint code
entry: make lint
language: system
types: [python]
pass_filenames: false
require_serial: true
- id: test
name: run tests
entry: make test
language: system
types: [python]
pass_filenames: false
require_serial: true
stages: [pre-push]