-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
74 lines (74 loc) · 1.95 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
default_install_hook_types: [commit-msg, pre-commit]
repos:
- repo: local
hooks:
- id: black
name: black
entry: poetry run black
language: system
types: [python]
require_serial: true
- id: check-added-large-files
name: Check for added large files
entry: poetry run check-added-large-files
language: system
- id: check-toml
name: Check Toml
entry: poetry run check-toml
language: system
types: [toml]
- id: check-yaml
name: Check Yaml
entry: poetry run check-yaml
language: system
types: [yaml]
- id: end-of-file-fixer
name: Fix End of Files
entry: poetry run end-of-file-fixer
language: system
types: [text]
stages: [commit, push, manual]
exclude: ^CHANGELOG\.md$
- id: flake8
name: flake8
entry: poetry run flake8
language: system
types: [python]
require_serial: true
- id: isort
name: isort
entry: poetry run isort
require_serial: true
language: system
types_or: [cython, pyi, python]
args: ["--filter-files"]
- id: trailing-whitespace
name: Trim Trailing Whitespace
entry: poetry run trailing-whitespace-fixer
language: system
types: [text]
stages: [commit, push, manual]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.6.0
hooks:
- id: prettier
exclude: ^(CHANGELOG\.md|\.git\/COMMIT\_EDITMSG)$
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v2.2.0
hooks:
- id: conventional-pre-commit
stages: [commit-msg]
args:
[
feat,
fix,
docs,
style,
refactor,
perf,
test,
build,
ci,
chore,
revert,
]