-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
102 lines (92 loc) · 2.23 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
default_stages: [commit]
repos:
- repo: meta
hooks:
- id: check-hooks-apply
- id: check-useless-excludes
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-merge-conflict
- id: check-toml
- id: check-yaml
- id: debug-statements
- id: destroyed-symlinks
- id: end-of-file-fixer
stages: [commit, manual]
- id: fix-byte-order-marker
- id: fix-encoding-pragma
args: [--remove]
- id: mixed-line-ending
args: [--fix=lf]
stages: [commit, manual]
- id: trailing-whitespace
exclude_types: [markdown, plain-text]
stages: [commit, manual]
# - repo: https://github.com/jorisroovers/gitlint
- repo: https://github.com/hongqn/gitlint
rev: v0.15.1
hooks:
- id: gitlint
- repo: https://code.kodo.org.uk/dom/pre-commit-hooks
rev: v0.6.1
hooks:
- id: check-executable-modes
- id: check-for-squash
- id: copyright-notice
args: [--min-size=1000]
files: ^kilter/.*
stages: [commit, manual]
- id: protect-first-parent
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.10.0
hooks:
- id: python-no-eval
- id: python-no-log-warn
- id: python-use-type-annotations
- repo: https://github.com/hakancelikdev/unimport
rev: 1.2.1
hooks:
- id: unimport
args: [--remove]
types: []
types_or: [python, pyi]
additional_dependencies: [libcst >=0.4.0]
stages: [commit, manual]
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
stages: [commit, manual]
- repo: https://github.com/asottile/add-trailing-comma
rev: v3.1.0
hooks:
- id: add-trailing-comma
args: [--py36-plus]
types: []
types_or: [python, pyi]
stages: [commit, manual]
- repo: https://github.com/flakeheaven/flakeheaven
rev: 3.3.0
hooks:
- id: flakeheaven
additional_dependencies:
- flake8-bugbear
- flake8-docstrings
- flake8-print
- flake8-return
- flake8-sfs
- pydocstyle[toml]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.10.0
hooks:
- id: mypy
args: [kilter/service, tests]
pass_filenames: false
additional_dependencies:
- anyio ~=3.1
- kilter.protocol ~=0.6.0
- sphinx
- trio-typing