-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
51 lines (51 loc) · 1.57 KB
/
.pre-commit-config.yaml
File metadata and controls
51 lines (51 loc) · 1.57 KB
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
---
default_language_version:
python: "python3"
exclude: "^.*\b(migrations)\b.*$"
repos:
- repo: "https://github.com/adamchainz/django-upgrade"
rev: "1.24.0"
hooks:
- id: "django-upgrade"
args: ['--target-version', '4.2']
- repo: "https://github.com/astral-sh/ruff-pre-commit"
rev: "v0.11.9"
hooks:
- id: "ruff"
args: ["--fix"]
- id: "ruff-format"
- repo: "https://github.com/pre-commit/mirrors-mypy"
rev: 'v1.15.0'
hooks:
- id: "mypy"
exclude: "src/.*/migrations/.*.py"
additional_dependencies:
# NOTE: deps are not version pinned here. The choice between maintaing versions in two
# places and typechecking with potentially newer packages than the code uses is not a
# very nice one. In this case we've opted for the latter.
- "channels"
- "conference-scheduler"
- "django-stubs[compatible-mypy]"
- "django-stubs-ext"
- "types-requests"
- "django-allauth"
- "django-bootstrap5"
- "django-colorfield"
- "django-cors-headers"
- "django-debug-toolbar"
- "django-filter"
- "django-leaflet"
- "django-oauth-toolkit"
- "django-otp"
- "django-prometheus"
- "django-reversion"
- "django-tables2"
- "django-taggit"
- "django-weasyprint"
- "icalendar"
- "psycopg2-binary"
- "python-magic"
- "pytz"
- "qrcode" # used by django-otp
- "Unidecode"
...