-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
43 lines (39 loc) · 1004 Bytes
/
.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
repos:
- repo: local
hooks:
- id: black
name: "Black"
entry: black
language: system
pass_filenames: true
types: ["python"]
- id: isort
name: "Isort"
entry: isort
language: system
pass_filenames: true
types: ["python"]
- id: flake8
name: "Flake8"
entry: flake8
language: system
pass_filenames: true
types: ["python"]
- id: missing-migrations
name: 'Missing migrations'
entry: python manage.py makemigrations --check
language: system
pass_filenames: false
types: ["file", "python"]
- id: python-test
name: 'Run Django tests'
entry: coverage run manage.py test --noinput --keepdb
language: system
pass_filenames: false
types: ["file", "python"]
- id: coverage
name: 'Confirm test coverage'
entry: coverage report -m --fail-under 98
language: system
pass_filenames: false
types: ["file", "python"]