/
.pre-commit-config.yaml
73 lines (73 loc) · 2.08 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
exclude: "^.*(migrations|fluent_comments).*$"
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-added-large-files
- id: check-yaml
- id: check-toml
- repo: https://github.com/asottile/pyupgrade
rev: v3.15.2
hooks:
- id: pyupgrade
args: [--py310-plus]
- repo: https://github.com/adamchainz/django-upgrade
rev: 1.16.0
hooks:
- id: django-upgrade
args: [--target-version, "4.2"]
- repo: https://github.com/psf/black
rev: 24.4.1
hooks:
- id: black
language_version: python3.12
- repo: https://github.com/timothycrosley/isort
# isort config is in setup.cfg
rev: 5.13.2
hooks:
- id: isort
language_version: python3
- repo: https://github.com/PyCQA/flake8
# flake8 config is in setup.cfg
rev: 7.0.0
hooks:
- id: flake8
language_version: python3
- repo: https://github.com/rtts/djhtml
rev: "3.0.6" # replace with the latest tag on GitHub
hooks:
- id: djhtml
args: [-t, "2"]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v1.9.0' # Use the sha / tag you want to point at
hooks:
- id: mypy
exclude: "[a-zA-Z]*/(migrations)|(docs)|(example)/(.)*"
args: [--no-strict-optional,
--ignore-missing-imports]
additional_dependencies:
- crispy_bootstrap4
- dj-inmemorystorage
- django-allauth
- django-crispy-forms
- django-debug-toolbar
- django-environ
- django_extensions
- django-filter
- django-fluent-comments
- django-htmx
- django-modelcluster
- django-model-utils
- django-stubs[compatible-mypy]
- django-taggit
- django-threadedcomments
- django-vite
- psycopg[binary]
- Pygments
- python-slugify
- setuptools
- wagtail
- wagtail_srcset
- types-python-slugify