-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
66 lines (58 loc) · 1.55 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
---
default_language_version:
python: python3.12
repos:
# Apply a selection of the pre-commit built-in validators
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.0.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-json
- id: check-merge-conflict
- id: check-yaml
- id: debug-statements
- id: check-symlinks
- id: detect-private-key
exclude: tests/
- id: end-of-file-fixer
- id: trailing-whitespace
exclude: .github/CODEOWNERS
# Make sure there are no unnecessary excludes in the above checks
- repo: meta
hooks:
- id: check-useless-excludes
- repo: https://github.com/frnmst/md-toc
rev: 9.0.0
hooks:
- id: md-toc
- repo: local
hooks:
- id: black
name: black
language: system
entry: venv/bin/black
types: ["python"]
- id: isort
name: isort
language: system
entry: venv/bin/isort --recursive
types: ["python"]
- id: pylint
name: pylint
language: system
entry: venv/bin/pylint
require_serial: true
types: ["python"]
- id: yamllint
name: yamllint
language: system
entry: venv/bin/yamllint --strict
types: ["yaml"]
- repo: https://github.com/lumapps/commit-message-validator
rev: 1.5.1
hooks:
- id: commit-message-validator
stages: [commit-msg]
args: [--allow-temp, --no-jira]