-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy path.pre-commit-config.yaml
69 lines (60 loc) · 1.57 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
repos:
# Python
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
args: ["--skip-string-normalization"]
exclude: ^tests/
- repo: https://github.com/pycqa/flake8
rev: "3.9.2"
hooks:
- id: flake8
args: ["--config=.flake8"]
- repo: https://github.com/pycqa/isort
rev: "5.10.1"
hooks:
- id: isort
- repo: https://github.com/pycqa/pydocstyle
rev: "6.1.1"
hooks:
- id: pydocstyle
# JS
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v2.7.1"
hooks:
- id: prettier
entry: prettier --config .prettierrc.json --ignore-path .prettierignore
stages: [commit, push]
files: "ui/*"
# Project Wide
- repo: https://github.com/jorisroovers/gitlint
rev: "v0.17.0"
hooks:
- id: gitlint
language: python
entry: gitlint
stages: [commit-msg]
args: [--msg-filename]
- repo: local
hooks:
- id: spell_check
name: spell_check
entry: scripts/ci/commit-msg-spellcheck.sh
language: system
stages: [commit-msg]
- id: alembic_pre_commit
name: alembic_pre_commit
entry: .githooks/pre-commit
language: system
stages: [commit]
- id: alembic_pre_push
name: alembic_pre_push
entry: .githooks/pre-push
language: system
stages: [push]
- id: add_signed_off_by
name: add_signed_off_by
entry: .githooks/prepare-commit-msg
language: system
stages: [prepare-commit-msg]