-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
68 lines (63 loc) · 1.45 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
repos:
- hooks:
- id: check-yaml
- id: check-ast
- id: check-docstring-first
- id: check-merge-conflict
- id: trailing-whitespace
- id: mixed-line-ending
- id: fix-byte-order-marker
- id: check-case-conflict
- id: check-json
- id: end-of-file-fixer
repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
- hooks:
- args:
- --in-place
- --expand-star-imports
- --remove-all-unused-imports
- --ignore-init-module-imports
id: autoflake
repo: https://github.com/myint/autoflake
rev: v2.0.0
- repo: https://github.com/asottile/setup-cfg-fmt
rev: v2.2.0
hooks:
- id: setup-cfg-fmt
- repo: https://github.com/asottile/reorder_python_imports
rev: v3.9.0
hooks:
- args:
- --py38-plus
id: reorder-python-imports
- hooks:
- args:
- --py38-plus
id: pyupgrade
repo: https://github.com/asottile/pyupgrade
rev: v3.2.2
- hooks:
- id: black
repo: https://github.com/psf/black
rev: 22.10.0
- hooks:
- additional_dependencies:
- black==22.10.0
id: blacken-docs
repo: https://github.com/asottile/blacken-docs
rev: v1.12.1
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.4.0
hooks:
- id: pretty-format-yaml
args: [--autofix, --indent, '2']
- id: pretty-format-toml
args: [--autofix]
exclude: ^poetry.lock$
- hooks:
- id: commitizen
stages:
- commit-msg
repo: https://github.com/commitizen-tools/commitizen
rev: v2.37.0