-
Notifications
You must be signed in to change notification settings - Fork 6
/
.pre-commit-config.yaml
74 lines (74 loc) · 2.14 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
exclude: "^.*(migrations|fluent_comments).*$"
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.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.19.0
hooks:
- id: pyupgrade
args: [--py310-plus]
- repo: https://github.com/adamchainz/django-upgrade
rev: 1.22.1
hooks:
- id: django-upgrade
args: [--target-version, "4.2"]
- repo: https://github.com/psf/black
rev: 24.10.0
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.1.1
hooks:
- id: flake8
language_version: python3
- repo: https://github.com/rtts/djhtml
rev: "3.0.7" # replace with the latest tag on GitHub
hooks:
- id: djhtml
args: [-t, "2"]
# - repo: https://github.com/pre-commit/mirrors-mypy
# rev: 'v1.11.2' # 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
# - types-pytz
# - wagtail
# - wagtail_srcset
# - types-python-slugify