-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.pre-commit-config.yaml
65 lines (58 loc) · 1.63 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: check-merge-conflict
- id: end-of-file-fixer
- id: mixed-line-ending
args: ["--fix=lf"]
- id: trailing-whitespace
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.7.1
hooks:
- id: prettier
types_or: [css, html, javascript, json, jsx, markdown]
exclude: ^frontend/public/assets
- 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