-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
55 lines (48 loc) · 1.34 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
repos:
- repo: https://github.com/yunojuno/pre-commit-xenon
rev: cc59b0431a5d072786b59430e9b342b2881064f6
hooks:
- id: xenon
args: ["--max-average=A", "--max-modules=C", "--max-absolute=C"]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-merge-conflict
- id: end-of-file-fixer
- id: trailing-whitespace
- id: fix-encoding-pragma
- repo: https://github.com/ecugol/pre-commit-hooks-django
rev: v0.4.0
hooks:
- id: check-absent-migrations
- id: check-untracked-migrations
- id: check-unapplied-migrations
- repo: local
hooks:
- id: python-no-print
name: check for print()
entry: sh ./pre-commit/python-no-print.sh
always_run: true
pass_filenames: false
language: system
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.9.0
hooks:
- id: python-no-eval
- repo: https://github.com/PyCQA/bandit
rev: 1.7.3
hooks:
- id: bandit
args: ["--exclude", "tests"]
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
- repo: local
hooks:
- id: django-test
name: django-test
entry: python backend/manage.py test --noinput
always_run: true
pass_filenames: false
language: system