forked from chilli-axe/mpc-autofill
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
90 lines (90 loc) · 2.71 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
repos:
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: "v0.0.257"
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
name: isort (python)
args: ["--profile", "black"]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
exclude: ".*/__snapshots__/.*" # trimming whitespace can break snapshot tests
- repo: https://github.com/psf/black
rev: 22.8.0
hooks:
- id: black
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.7.0
hooks:
- id: mypy
args: [--config-file, mypy.ini, desktop-tool/, MPCAutofill/]
additional_dependencies: [
# typing
"django-stubs[compatible-mypy]",
"types-Markdown",
"types-selenium",
"types-requests",
"types-chardet",
"types-jsonschema",
# shared between desktop tool and backend
"pytest~=7.3",
"ratelimit~=2.2",
# desktop tool
"attrs~=23.1",
"click==8.0.4",
"enlighten~=1.11",
# backend
"Django~=4.2.3",
"django-cors-headers~=3.14.0",
"django-elasticsearch-dsl~=7.3.0",
"django-bulk-sync~=3.3.0",
"django-environ~=0.10.0",
"google-api-python-client~=2.86",
"jsonschema~=4.20.0",
"Levenshtein~=0.23.0",
"oauth2client~=4.1",
"Markdown~=3.4",
"psycopg2-binary~=2.9.6",
"pycountry~=22.3.0",
"sentry-sdk~=1.30.0",
"tqdm~=4.65",
]
pass_filenames: false
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v2.7.1"
hooks:
- id: prettier
- repo: https://github.com/pre-commit/mirrors-eslint
rev: "v8.24.0"
hooks:
- id: eslint
files: \.tsx?$
types: [file]
additional_dependencies:
- eslint@8.24.0
- typescript@4.9.4
- eslint-config-prettier@v8.5.0
- eslint-config-next@v13.2.4
- eslint-plugin-promise@v6.0.1
- eslint-plugin-n@v15.3.0
- eslint-plugin-import@v2.26.0
- eslint-config-standard@v17.0.0
- eslint-plugin-simple-import-sort@10.0.0
- "@typescript-eslint/eslint-plugin@6.5.0"
- "@typescript-eslint/parser@5.49.0"
args:
- --fix
- repo: https://github.com/Riverside-Healthcare/djLint
rev: v1.17.2
hooks:
- id: djlint-django
args:
- --reformat