This repository has been archived by the owner on Feb 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
63 lines (63 loc) · 1.92 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
name: black
entry: black
args: [--config=backend/pyproject.toml, backend/]
types: [python]
exclude: (^Frontend/|migrations)
- repo: https://github.com/pycqa/flake8
rev: "4.0.1" # pick a git hash / tag to point to
hooks:
- id: flake8
name: flake8
entry: flake8
args: [--config=backend/setup.cfg, backend/]
types: [python]
exclude: /(migrations|tests|backend)/
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.942 # Use the sha / tag you want to point at
hooks:
- id: mypy
name: mypy
entry: mypy
args: [--config-file=backend/pyproject.toml, backend/]
types: [python]
exclude: ^frontend/
additional_dependencies:
[
Cython==0.29.28,
tokenize-rt==3.2.0,
django-stubs==1.10.1,
django-environ==0.8.1,
graphene-django==3.0.0b7,
django-filter==21.1,
django-cors-headers==3.11.0,
psycopg2==2.9.3,
django-graphql-jwt==0.3.4,
graphql-core==3.1.2,
]
pass_filenames: false
- repo: https://github.com/pycqa/isort
rev: 5.10.1
hooks:
- id: isort
name: isort (python)
entry: isort
args: [--profile, black, --skip, migrations, --filter-files]
types: [python]
exclude: (^frontend/|migrations)
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.6.1
hooks:
- id: prettier
types_or: [css, javascript, jsx, ts, tsx]