-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
98 lines (97 loc) · 2.73 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
---
# .pre-commit-config.yaml
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
types: [yaml]
files: \.(yaml)$
- repo: https://github.com/psf/black
rev: 24.10.0
hooks:
- id: black
language_version: python3
- repo: https://github.com/PyCQA/pylint
rev: v3.3.1
hooks:
- id: pylint
name: pylint
entry: pylint
language: system
types: [python]
args: [--rcfile=.pylintrc, .]
- repo: https://github.com/hadolint/hadolint
rev: v2.13.1-beta
hooks:
- id: hadolint
name: hadolint
entry: hadolint
language: system
types: [dockerfile]
files: ^Dockerfile$
- repo: local
hooks:
- id: yaml-format
name: yaml-format
entry: python format_yaml/main.py
language: system
types: [yaml]
files: \.(yaml)$
exclude: '.github/.*'
- id: yamllint
name: yamllint
entry: yamllint
language: system
types: [yaml]
# files: \.(yml|yaml)$
files: \.(yaml)$
exclude: '.github/.*'
# # TODO: Solve error
# - id: yml-format
# name: yml-format
# entry: python format_yml/main.py
# language: system
# types: [yaml]
# files: \.(yml)$
# exclude: '.github/.*'
- id: docker-compose
name: docker-compose
entry: python validate_docker_compose/main.py
language: system
types: [yaml]
files: ^docker-compose(\.dev|\.prod)?\.yml$
- id: validate-commit
name: validate-commit
entry: python control_commit/main.py --log-level=DEBUG
always_run: true
pass_filenames: false
language: system
stages: [pre-push]
- id: commit-msg-version-check
name: commit-msg-version-check
entry: python commit_msg_version_bump/main.py --log-level=DEBUG
always_run: true
language: system
pass_filenames: false
# args: [--commit_msg_file, .git/COMMIT_EDITMSG]
stages: [pre-push]
- id: bump-year
name: bump-year
entry: python bump_year/main.py --log-level=INFO
always_run: true
pass_filenames: false
language: system
- id: generate-changelog
name: generate-changelog
entry: python generate_changelog/main.py --log-level=INFO
always_run: true
pass_filenames: false
language: system
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v4.0.0-alpha.8
hooks:
- id: prettier
files: \.(markdown|md)$