-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
187 lines (154 loc) · 4.03 KB
/
pyproject.toml
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
# ==== pytest ====
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "--ds=config.settings.test --reuse-db"
python_files = ["tests.py", "test_*.py"]
# ==== Coverage ====
[tool.coverage.run]
include = ["wooster_django/**"]
omit = ["*/migrations/*", "*/tests/*"]
plugins = ["django_coverage_plugin"]
# ==== Ruff ====
[tool.ruff]
fix = true
line-length = 119
select = ["E", "F", "B"]
unfixable = ["B"]
target-version = "py311"
exclude = ["migrations"]
[tool.ruff.format]
quote-style = "double"
[tool.ruff.lint]
fixable = ["ALL"]
# ==== black ====
[tool.black]
line-length = 119
target-version = ['py311']
# ==== isort ====
[tool.isort]
profile = "black"
line_length = 119
known_first_party = ["wooster_django", "config"]
skip = ["venv/"]
skip_glob = ["**/migrations/*.py"]
# ==== mypy ====
[tool.mypy]
python_version = "3.11"
check_untyped_defs = true
ignore_missing_imports = true
warn_unused_ignores = true
warn_redundant_casts = true
warn_unused_configs = true
plugins = ["mypy_django_plugin.main"]
[tool.mypy_django_plugin]
ignore_missing_model_attributes = true
[[tool.mypy.overrides]]
# Django migrations should not produce any errors:
module = "*.migrations.*"
ignore_errors = true
[tool.django-stubs]
django_settings_module = "config.settings.test"
# ==== PyLint ====
[tool.pylint.MASTER]
load-plugins = ["pylint_django"]
django-settings-module = "config.settings.local"
[tool.pylint.FORMAT]
max-line-length = 119
[tool.pylint."MESSAGES CONTROL"]
disable = ["missing-docstring", "invalid-name"]
[tool.pylint.DESIGN]
max-parents = 13
[tool.pylint.TYPECHECK]
generated-members = [
"REQUEST",
"acl_users",
"aq_parent",
"[a-zA-Z]+_set{1,2}",
"save",
"delete",
]
# ==== djLint ====
[tool.djlint]
blank_line_after_tag = "load,extends"
close_void_tags = true
format_css = true
format_js = true
# TODO: remove T002 when fixed https://github.com/Riverside-Healthcare/djLint/issues/687
ignore = "H006,H030,H031,T002"
include = "H017,H035"
indent = 2
max_line_length = 119
profile = "django"
[tool.djlint.css]
indent_size = 2
[tool.djlint.js]
indent_size = 2
[tool.poetry]
name = "wooster-django"
version = "0.3.1.dev5"
description = ""
authors = ["Karl Wooster <[email protected]>"]
license = "MIT"
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.11"
django = "^5.1"
python-slugify = "^8.0.4"
pillow = "^10.4.0"
argon2-cffi = "^23.1.0"
shortuuid = "^1.0.13"
whitenoise = "^6.7.0"
redis = "^5.0.8"
celery = "^5.4.0"
furl = "^2.1.3"
django-colorfield = "^0.11.0"
django-environ = "^0.11.2"
django-model-utils = "^4.5.1"
django-allauth = "^64.1.0"
django-crispy-forms = "^2.3"
crispy-bootstrap5 = "^2024.2"
django-phonenumber-field = {extras = ["phonenumberslite"], version = "^8.0.0"}
django-compressor = "^4.5.1"
django-redis = "^5.4.0"
dj-database-url = "^2.2.0"
django-constance = {extras = ["redis"], version = "^3.1.0"}
gunicorn = {version = "^23.0.0", optional = true}
hiredis = {version = "^3.0.0", optional = true}
django-extensions = "^3.2.3"
psycopg = {extras = ["binary"], version = "^3.2.1"}
django-anymail = {extras = ["brevo"], version = "^11.1", optional = true}
[tool.poetry.extras]
production = ["gunicorn", "hiredis", "django-anymail"]
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.dev.dependencies]
werkzeug = {extras = ["watchdog"], version = "^3.0.4"}
ipdb = "^0.13.13"
commitizen = "^3.29.0"
mypy = "^1.11.1"
django-stubs = {extras = ["compatible-mypy"], version = "^5.0.4"}
types-python-slugify = "^8.0.2.20240310"
ruff = "^0.6.2"
djlint = "^1.34.1"
pylint-django = "^2.5.5"
pre-commit = "^3.8.0"
django-debug-toolbar = "^4.4.6"
[tool.poetry.group.test]
optional = true
[tool.poetry.group.test.dependencies]
pytest = "^8.3.2"
pytest-sugar = "^1.0.0"
coverage = "^7.6.1"
factory-boy = "^3.3.1"
django-coverage-plugin = "^3.1.0"
pytest-django = "^4.8.0"
[tool.commitizen]
name = "cz_conventional_commits"
tag_format = "v$version"
version_scheme = "pep440"
version_provider = "poetry"
update_changelog_on_bump = true
major_version_zero = true
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"