-
Notifications
You must be signed in to change notification settings - Fork 3
/
.pre-commit-config.yaml
132 lines (118 loc) · 2.99 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
default_install_hook_types:
- pre-commit
default_stages: [commit, push]
repos:
- repo: local
hooks:
- id: autoupdate
name: pre-commit autoupdate
entry: poetry run pre-commit autoupdate
language: system
pass_filenames: false
# files: .pre-commit-config.yaml
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-added-large-files
- id: check-ast
- id: check-builtin-literals
- id: check-case-conflict
- id: check-docstring-first
- id: check-executables-have-shebangs
- id: check-json
exclude: ".vscode/|.devcontainer/"
- id: check-merge-conflict
- id: check-shebang-scripts-are-executable
- id: check-symlinks
- id: check-toml
- id: check-vcs-permalinks
- id: check-xml
- id: check-yaml
exclude: "mkdocs(?:\\.[a-zA-Z]+)?\\.yml"
- id: debug-statements
- id: detect-private-key
- id: end-of-file-fixer
exclude: "\\.svg$|\\.SVG$|\\.drawio$|\\.mmd$|\\.DRAWIO$|\\.MMD$"
- id: forbid-submodules
- id: no-commit-to-branch
- id: pretty-format-json
args:
- "--autofix"
- "--no-sort-keys"
exclude: ".vscode/|.devcontainer/"
- id: trailing-whitespace
exclude: "\\.svg$|\\.SVG$|\\.drawio$|\\.mmd$|\\.DRAWIO$|\\.MMD$"
- repo: https://github.com/gitleaks/gitleaks
rev: v8.18.4
hooks:
- id: gitleaks
args:
- --config
- ".github/linters/.gitleaks.toml"
- repo: https://gitlab.com/bmares/check-json5
rev: v1.0.0
hooks:
- id: check-json5
- repo: local
hooks:
- id: pyupgrade
name: pyupgrade
entry: poetry poe pyupgrade
types: [python]
language: system
- repo: local
hooks:
- id: ruff
name: ruff
entry: poetry poe ruff-fix
types: [python]
language: system
- repo: local
hooks:
- id: isort
name: isort
entry: poetry poe isort-fix
types: [python]
language: system
- repo: local
hooks:
- id: black
name: black
entry: poetry poe black-fix
types: [python]
language: system
- repo: local
hooks:
- id: flake8
name: flake8
entry: poetry poe flake8
types: [python]
language: system
- repo: local
hooks:
- id: pydocstyle
name: pydocstyle
entry: poetry poe pydocstyle
types: [python]
language: system
- repo: local
hooks:
- id: mypy
name: mypy
entry: poetry poe mypy-pre-commit
types: [python]
language: system
- repo: local
hooks:
- id: pylint
name: pylint
entry: poetry poe pylint
language: system
types: [python]
- repo: local
hooks:
- id: bandit
name: bandit
entry: poetry poe bandit-pre-commit
types: [python]
language: system