-
Notifications
You must be signed in to change notification settings - Fork 3
/
.pre-commit-config.yaml
61 lines (55 loc) · 1.56 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: check-merge-conflict
- id: end-of-file-fixer
exclude: ^frontend/src/api/_autogen
- id: mixed-line-ending
args: ["--fix=lf"]
exclude: ^frontend/src/api/_autogen
- id: trailing-whitespace
exclude: ^frontend/src/api/_autogen
- repo: https://github.com/dnephin/pre-commit-golang
rev: v0.5.1
hooks:
- id: go-fmt
- repo: local
hooks:
- id: black-conda
name: black-conda
entry: black
language: conda
require_serial: true
types_or: [python, pyi]
exclude: ^backend/.*/migrations
- id: flake8-conda
name: flake8-conda
entry: flake8
language: conda
require_serial: true
types_or: [python, pyi]
args: ["--max-line-length=88", "--max-complexity=18"]
exclude: ^backend/.*/migrations
- id: isort-conda
name: isort-conda
entry: isort
language: conda
require_serial: true
types_or: [python, pyi]
args: ["--filter-files"]
exclude: ^backend/.*/migrations
- id: mypy-conda
name: mypy-conda
entry: mypy
language: conda
require_serial: true
types_or: [python, pyi]
exclude: ^backend/.*/migrations
- id: pyupgrade-conda
name: pyupgrade-conda
entry: pyupgrade
language: conda
require_serial: true
types_or: [python, pyi]
exclude: ^backend/.*/migrations