-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
57 lines (53 loc) · 1.67 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-docstring-first
- id: check-merge-conflict
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks:
- id: isort
- repo: https://github.com/PyCQA/flake8
rev: 6.1.0
hooks:
- id: flake8
exclude: migrations/|config/|.*settings(\.py|/)?
additional_dependencies:
- flake8-isort
- flake8-django
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.6.0
hooks:
- id: mypy
exclude: migrations/|config/|.*settings(\.py|/)?
additional_dependencies:
- django-debug-toolbar
- django-stubs
- django-environ
- django-phonenumber-field[phonenumbers]
- django_extensions
- psycopg2-binary
- repo: local
hooks:
- id: run-make-pytest
name: Run make pytest in adaptive_hockey_federation
language: system
entry: make pytest
pass_filenames: false
types: [python]
# args: ["-C", "adaptive_hockey_federation"]
- id: export-dev-dependencies
name: Export dev Dependencies
language: system
pass_filenames: false
entry: poetry export --without-hashes --with dev --output requirements/develop.txt
files: ^(pyproject.toml|poetry.lock)$
- id: export-prod-dependencies
name: Export prod Dependencies
language: system
pass_filenames: false
entry: poetry export --without-hashes --output requirements/production.txt
files: ^(pyproject.toml|poetry.lock)$