-
Notifications
You must be signed in to change notification settings - Fork 85
/
.pre-commit-config.yaml
77 lines (68 loc) · 1.82 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-ast
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: check-shebang-scripts-are-executable
- id: check-symlinks
- id: end-of-file-fixer
- id: fix-byte-order-marker
- id: trailing-whitespace
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v9.13.0
hooks:
- id: commitlint
stages: [commit-msg]
additional_dependencies: ["@commitlint/config-conventional"]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v4.0.0-alpha.8
hooks:
- id: prettier
types_or: [json, yaml, markdown]
args: [--prose-wrap=always]
- repo: https://github.com/DavidAnson/markdownlint-cli2
rev: v0.12.1
hooks:
- id: markdownlint-cli2
- repo: local
hooks:
- id: black
name: black
language: system
entry: poetry run black
require_serial: true
types: [python]
- id: flake8
name: flake8
language: system
entry: poetry run flake8 --config .flake8 --statistics
require_serial: true
types: [python]
- id: isort
name: isort
language: system
entry: poetry run isort
require_serial: true
types: [python]
- id: mypy
name: mypy
language: system
entry: poetry run dmypy run --timeout 3600 src
require_serial: true
pass_filenames: false
files: ^src/.+$
exclude: ^tests/.+$
exclude: |
(?x)^(
poetry.lock
)$
ci:
autofix_commit_msg: "refactor(pre-commit): Apply hook auto fixes"
autoupdate_commit_msg: "build(pre-commit): Apply hook rev updates"
skip:
- black
- flake8
- isort
- mypy