forked from skorokithakis/django-project-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
33 lines (33 loc) · 894 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
repos:
- repo: https://github.com/ambv/black
rev: 18.9b0
hooks:
- id: black
- repo: https://github.com/asottile/reorder_python_imports
rev: v1.7.0
hooks:
- id: reorder-python-imports
- repo: https://gitlab.com/pycqa/flake8
rev: '3.7.7'
hooks:
- id: flake8
args: ["--config=setup.cfg"]
language_version: python3
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.720
hooks:
- id: mypy
language: system
name: Run MyPy typing checks.
entry: bash -c "PYTHONPATH=$(pwd):$PYTHONPATH mypy ."
pass_filenames: false
verbose: true
types: ["python"]
- repo: local
hooks:
- id: migrations-check
language: system
name: Check for uncreated migrations.
entry: bash -c "./manage.py makemigrations --check --dry-run"
types: ["python"]
pass_filenames: false