-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
156 lines (140 loc) · 3.64 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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
default_language_version:
python: python3.10
ci:
autofix_commit_msg: |
ci: auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
autofix_prs: true
autoupdate_branch: "develop"
autoupdate_commit_msg: "ci: pre-commit autoupdate"
autoupdate_schedule: weekly
skip: [python-safety-dependencies-check, poetry-lock, poetry-export]
repos:
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v2.2.0
hooks:
- id: conventional-pre-commit
stages: [commit-msg]
args:
[
"add",
"ci",
"docs",
"feat",
"bug",
"fix",
"refactor",
"revert",
"test",
"security",
"perf",
"resolve",
"merge",
"maintain",
]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-xml
- id: mixed-line-ending
args: ["--fix=lf"]
- id: check-added-large-files
- id: check-ast
- id: check-builtin-literals
- id: check-case-conflict
- id: check-docstring-first
- id: check-merge-conflict
- id: check-toml
- id: debug-statements
- id: fix-byte-order-marker
- id: forbid-new-submodules
- id: forbid-submodules
- id: detect-private-key
- id: no-commit-to-branch
args: ["--branch=main", "--branch=develop"]
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.10.0
hooks:
- id: python-use-type-annotations
- id: python-check-blanket-noqa
- id: python-check-mock-methods
- id: python-no-log-warn
- id: python-use-type-annotations
- id: text-unicode-replacement-char
- repo: https://github.com/Lucas-C/pre-commit-hooks-safety
rev: v1.3.1
hooks:
- id: python-safety-dependencies-check
files: pyproject.toml
- repo: https://github.com/PyCQA/docformatter
rev: v1.6.3
hooks:
- id: docformatter
- repo: https://github.com/nbQA-dev/nbQA
rev: 1.7.0
hooks:
- id: nbqa-check-ast
- id: nbqa-mypy
args: ["--config-file=pyproject.toml"]
- id: nbqa-pyupgrade
- repo: https://github.com/bwhmather/ssort
rev: v0.11.6
hooks:
- id: ssort
- repo: https://github.com/asottile/pyupgrade
rev: v3.3.1
hooks:
- id: pyupgrade
- repo: https://github.com/psf/black
rev: 23.3.0
hooks:
- id: black
- id: black-jupyter
files: \.ipynb$
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks:
- id: isort
args: ["--profile=black"]
- repo: https://github.com/PyCQA/pylint
rev: v3.0.0a6
hooks:
- id: pylint
args: ["--rcfile=pyproject.toml"]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.2.0
hooks:
- id: mypy
args:
- "--config-file=pyproject.toml"
exclude: "tests"
- repo: https://github.com/PyCQA/bandit
rev: 1.7.5
hooks:
- id: bandit
exclude: "^tests/"
args:
- "-r"
- repo: https://github.com/kynan/nbstripout
rev: 0.6.1
hooks:
- id: nbstripout
- repo: https://github.com/python-poetry/poetry
rev: 1.4.0
hooks:
- id: poetry-check
- id: poetry-lock
language_version: 3.10.8
- id: poetry-export
args:
[
"--with",
"dev",
"--format",
"requirements.txt",
"--output",
"requirements.txt",
]