-
-
Notifications
You must be signed in to change notification settings - Fork 63
/
Copy path.pre-commit-config.yaml
116 lines (114 loc) · 3.99 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
ci:
skip: [pyright]
autoupdate_schedule: quarterly
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
# File names
- id: check-case-conflict
# File formats
- id: pretty-format-json
- id: check-json
- id: check-toml
- id: check-yaml
# Executables
- id: check-executables-have-shebangs
exclude: dev-env
- id: check-shebang-scripts-are-executable
# Git shenanigans
- id: check-merge-conflict
- id: check-added-large-files
# Python issues
- id: check-ast
- id: debug-statements
# Whitespace
- id: end-of-file-fixer
- id: trailing-whitespace
- id: mixed-line-ending
- repo: https://github.com/RobertCraigie/pyright-python
rev: v1.1.393
hooks:
- id: pyright
additional_dependencies:
- aiopg==1.4.0
- alabaster==0.7.16 ; python_full_version < '3.10'
- alabaster==1.0.0 ; python_full_version >= '3.10'
- asgiref==3.8.1
- async-timeout==4.0.3
- attrs==25.1.0
- babel==2.17.0
- certifi==2025.1.31
- charset-normalizer==3.4.1
- colorama==0.4.6 ; sys_platform == 'win32'
- contextlib2==21.6.0 ; python_full_version < '3.10'
- croniter==6.0.0
- django==4.2.19 ; python_full_version < '3.10'
- django==5.1.6 ; python_full_version >= '3.10'
- django-stubs==5.1.3
- django-stubs-ext==5.1.3
- docutils==0.21.2
- greenlet==3.1.1 ; (python_full_version < '3.14' and platform_machine ==
'AMD64') or (python_full_version < '3.14' and platform_machine == 'WIN32')
or (python_full_version < '3.14' and platform_machine == 'aarch64') or
(python_full_version < '3.14' and platform_machine == 'amd64') or (python_full_version
< '3.14' and platform_machine == 'ppc64le') or (python_full_version <
'3.14' and platform_machine == 'win32') or (python_full_version < '3.14'
and platform_machine == 'x86_64')
- idna==3.10
- imagesize==1.4.1
- importlib-metadata==8.6.1 ; python_full_version < '3.10'
- jinja2==3.1.5
- markupsafe==3.0.2
- packaging==24.2
- psycopg==3.2.4
- psycopg-pool==3.2.4
- psycopg2-binary==2.9.10
- pygments==2.19.1
- python-dateutil==2.9.0.post0
- pytz==2025.1
- requests==2.32.3
- six==1.17.0
- snowballstemmer==2.2.0
- sphinx==7.4.7 ; python_full_version < '3.10'
- sphinx==8.1.3 ; python_full_version >= '3.10'
- sphinxcontrib-applehelp==2.0.0
- sphinxcontrib-devhelp==2.0.0
- sphinxcontrib-htmlhelp==2.1.0
- sphinxcontrib-jsmath==1.0.1
- sphinxcontrib-qthelp==2.0.0
- sphinxcontrib-serializinghtml==2.0.0
- sqlalchemy==2.0.38
- sqlparse==0.5.3
- tomli==2.2.1 ; python_full_version < '3.11'
- types-pyyaml==6.0.12.20241230
- typing-extensions==4.12.2
- tzdata==2025.1 ; sys_platform == 'win32'
- urllib3==2.3.0
- zipp==3.21.0 ; python_full_version < '3.10'
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.9.5
hooks:
- id: ruff
args: [--fix, --unsafe-fixes, --show-fixes]
- id: ruff-format
- repo: https://github.com/PyCQA/doc8
rev: v1.1.2
hooks:
- id: doc8
- repo: https://github.com/adamchainz/django-upgrade
rev: 1.23.1
hooks:
- id: django-upgrade
args: [--target-version, '4.2'] # Replace with Django version
- repo: local
hooks:
- id: sync-pre-commit
name: Sync pre-commit hooks
language: python
entry: scripts/sync-pre-commit.py
additional_dependencies:
- uv
- ruamel.yaml