-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
62 lines (54 loc) · 1.32 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
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
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]