-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
78 lines (78 loc) · 2.45 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
default_language_version:
python: python3.11
exclude: "^examples/"
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-merge-conflict
- id: check-json
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.3.0
hooks:
- id: mypy
files: "^backend/"
args: ["--config-file", "backend/pyproject.toml"]
additional_dependencies:
- "Flask ~= 2.2.3"
- "gunicorn ~= 20.1.0"
- "types-redis ~= 4.5.1"
- "types-PyYAML ~= 6.0"
- "types-jsonschema ~= 4.17"
- "psycopg[pool] ~= 3.1.9"
- "pycryptodome ~= 3.18.0"
- "python-dotenv ~= 1.0.0"
- "types-requests ~= 2.31.0"
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 23.3.0
hooks:
- id: black
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v8.40.0
hooks:
- id: eslint
files: "^frontend/"
types: [file]
types_or: [javascript, jsx, ts, tsx]
additional_dependencies:
- "eslint@v8.40.0"
- "@typescript-eslint/eslint-plugin@5.57.1"
- "@typescript-eslint/parser@5.57.1"
- "eslint-config-prettier@8.8.0"
- "eslint-config-react-app@7.0.1"
- "eslint-plugin-react@7.32.2"
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.7.1
hooks:
- id: prettier
additional_dependencies:
# The mirror doesn't include v2.8.8 because there's a v3 alpha and it only mirrors increasing versions.
# https://github.com/pre-commit/mirrors-prettier/issues/29
- "prettier@v2.8.8"
# - repo: local
# hooks:
# - id: tsc
# name: tsc
# language: node
# entry: tsc -p frontend/tsconfig.json --noEmit
# pass_filenames: false
# files: '^frontend/src/.*\.tsx?$'
# additional_dependencies:
# - "@types/react@18.0.28"
# - "@types/react-dom@18.0.11"
# - "typescript@5.0.2"
# - id: tsc-vite-config
# name: tsc-vite-config
# language: node
# entry: tsc -p frontend/tsconfig.node.json --noEmit
# pass_filenames: false
# files: '^frontend/vite\.config\.ts$'
# additional_dependencies:
# - "typescript@5.0.2"