This repository has been archived by the owner on Nov 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
78 lines (78 loc) · 2.51 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
---
repos:
- repo: local
hooks:
- id: check_container
name: check container
description: "Check for a valid PIB container."
entry: ./scripts/hooks/check_container.sh
language: system
stages: [commit]
pass_filenames: false
require_serial: true
always_run: true
- id: check_spelling
name: check commit spelling
description: "Check spelling on commit messages."
entry: ./scripts/hooks/check_spelling.sh
language: system
stages: [commit-msg]
minimum_pre_commit_version: "0.15.4"
require_serial: true
always_run: true
- id: commitizen
name: commitizen check
description: "Check whether the commit message follows committing rules."
entry: cz check --commit-msg-file
language: python
language_version: python3
stages: [commit-msg]
minimum_pre_commit_version: "0.15.4"
require_serial: true
always_run: true
- id: darglint
name: darglint
description: 'Check docstrings for Sphinx compliance.'
entry: darglint
language: python
types: [python]
require_serial: true
- id: protected_branches
name: protected branches
description: "Run additional checks on branches marked as protected."
entry: ./scripts/hooks/protected_branches.sh
language: system
stages: [commit]
pass_filenames: false
require_serial: true
always_run: true
- id: pyproject.toml
name: pyproject.toml lint
description: "Lint the pyproject.toml file."
entry: bash -c 'tomll pyproject.toml; git diff --exit-code'
language: system
stages: [commit]
files: ^pyproject.toml$
- id: shellcheck
name: shellcheck scripts
description: "Lint shell script files."
entry: shellcheck
language: system
stages: [commit]
types: [file, shell]
- id: trufflehog
name: TruffleHog
description: "Scan the commit for leaked credentials."
entry: bash -c 'trufflehog git file://. --since-commit HEAD --only-verified --fail --no-update'
language: system
stages: [commit]
pass_filenames: false
require_serial: true
always_run: true
- id: yamllint
name: yamllint
description: "Lint YAML files."
entry: yamllint
language: python
stages: [commit]
types: [file, yaml]