@@ -6,9 +6,9 @@ python_files = [
6
6
" tests.py" ,
7
7
" test_*.py" ,
8
8
]
9
- {%- if cookiecutter.frontend_pipeline == 'Gulp' % }
9
+ {%- if cookiecutter.frontend_pipeline == 'Gulp' %}
10
10
norecursedirs = [" node_modules" ]
11
- {%- endif % }
11
+ {%- endif %}
12
12
13
13
# ==== Coverage ====
14
14
[tool .coverage .run ]
@@ -26,9 +26,9 @@ warn_redundant_casts = true
26
26
warn_unused_configs = true
27
27
plugins = [
28
28
" mypy_django_plugin.main" ,
29
- {%- if cookiecutter.use_drf == "y" % }
29
+ {%- if cookiecutter.use_drf == "y" %}
30
30
"mypy_drf_plugin.main",
31
- {%- endif % }
31
+ {%- endif %}
32
32
]
33
33
34
34
[[tool .mypy .overrides ]]
@@ -145,23 +145,23 @@ force-single-line = true
145
145
dev-dependencies = [
146
146
" Werkzeug[watchdog]==3.0.6" , # https://github.com/pallets/werkzeug
147
147
" ipdb==0.13.13" , # https://github.com/gotcha/ipdb
148
- {%- if cookiecutter.use_docker == 'y' % }
148
+ {%- if cookiecutter.use_docker == 'y' %}
149
149
"psycopg[c]==3.2.3", # https://github.com/psycopg/psycopg
150
- {%- else % }
150
+ {%- else %}
151
151
"psycopg[binary]==3.2.3", # https://github.com/psycopg/psycopg
152
- {%- endif % }
153
- {%- if cookiecutter.use_async == 'y' or cookiecutter.use_celery == 'y' % }
152
+ {%- endif %}
153
+ {%- if cookiecutter.use_async == 'y' or cookiecutter.use_celery == 'y' %}
154
154
"watchfiles==0.24.0", # https://github.com/samuelcolvin/watchfiles
155
- {%- endif % }
155
+ {%- endif %}
156
156
# Testing
157
157
# ------------------------------------------------------------------------------
158
158
"mypy==1.11.2", # https://github.com/python/mypy
159
159
"django-stubs[compatible-mypy]==5.1.0", # https://github.com/typeddjango/django-stubs
160
160
"pytest==8.3.3", # https://github.com/pytest-dev/pytest
161
161
"pytest-sugar==1.0.0", # https://github.com/Frozenball/pytest-sugar
162
- {%- if cookiecutter.use_drf == "y" % }
162
+ {%- if cookiecutter.use_drf == "y" %}
163
163
"djangorestframework-stubs==3.15.1", # https://github.com/typeddjango/djangorestframework-stubs
164
- {%- endif % }
164
+ {%- endif %}
165
165
# Documentation
166
166
# ------------------------------------------------------------------------------
167
167
"sphinx==7.4.7", # https://github.com/sphinx-doc/sphinx
@@ -195,32 +195,32 @@ requires-python = "==3.12.*"
195
195
dependencies = [
196
196
" python-slugify==8.0.4" , # https://github.com/un33k/python-slugify
197
197
" Pillow==10.4.0" , # https://github.com/python-pillow/Pillow
198
- {%- if cookiecutter.frontend_pipeline == 'Django Compressor' % }
199
- {%- if cookiecutter.windows == 'y' and cookiecutter.use_docker == 'n' % }
198
+ {%- if cookiecutter.frontend_pipeline == 'Django Compressor' %}
199
+ {%- if cookiecutter.windows == 'y' and cookiecutter.use_docker == 'n' %}
200
200
"rcssmin==1.1.2", # --install-option="--without-c-extensions" # https://github.com/ndparker/rcssmin
201
- {%- else % }
201
+ {%- else %}
202
202
"rcssmin==1.1.2", # https://github.com/ndparker/rcssmin
203
- {%- endif % }
204
- {%- endif % }
203
+ {%- endif %}
204
+ {%- endif %}
205
205
"argon2-cffi==23.1.0", # https://github.com/hynek/argon2_cffi
206
- {%- if cookiecutter.use_whitenoise == 'y' % }
206
+ {%- if cookiecutter.use_whitenoise == 'y' %}
207
207
"whitenoise==6.7.0", # https://github.com/evansd/whitenoise
208
- {%- endif % }
208
+ {%- endif %}
209
209
"redis==5.1.1", # https://github.com/redis/redis-py
210
- {%- if cookiecutter.use_docker == "y" or cookiecutter.windows == "n" % }
210
+ {%- if cookiecutter.use_docker == "y" or cookiecutter.windows == "n" %}
211
211
"hiredis==3.0.0", # https://github.com/redis/hiredis-py
212
- {%- endif % }
213
- {%- if cookiecutter.use_celery == "y" % }
212
+ {%- endif %}
213
+ {%- if cookiecutter.use_celery == "y" %}
214
214
"celery==5.4.0", # pyup: < 6.0 # https://github.com/celery/celery
215
215
"django-celery-beat==2.7.0", # https://github.com/celery/django-celery-beat
216
- {%- if cookiecutter.use_docker == 'y' % }
216
+ {%- if cookiecutter.use_docker == 'y' %}
217
217
"flower==2.0.1", # https://github.com/mher/flower
218
- {%- endif % }
219
- {%- endif % }
220
- {%- if cookiecutter.use_async == 'y' % }
218
+ {%- endif %}
219
+ {%- endif %}
220
+ {%- if cookiecutter.use_async == 'y' %}
221
221
"uvicorn[standard]==0.31.0", # https://github.com/encode/uvicorn
222
222
"uvicorn-worker==0.2.0", # https://github.com/Kludex/uvicorn-worker
223
- {%- endif % }
223
+ {%- endif %}
224
224
# Django
225
225
# ------------------------------------------------------------------------------
226
226
"django==5.0.9", # pyup: < 5.1 # https://www.djangoproject.com/
@@ -229,57 +229,57 @@ dependencies = [
229
229
"django-allauth[mfa]==65.0.2", # https://github.com/pennersr/django-allauth
230
230
"django-crispy-forms==2.3", # https://github.com/django-crispy-forms/django-crispy-forms
231
231
"crispy-bootstrap5==2024.10", # https://github.com/django-crispy-forms/crispy-bootstrap5
232
- {%- if cookiecutter.frontend_pipeline == 'Django Compressor' % }
232
+ {%- if cookiecutter.frontend_pipeline == 'Django Compressor' %}
233
233
"django-compressor==4.5.1", # https://github.com/django-compressor/django-compressor
234
- {%- endif % }
234
+ {%- endif %}
235
235
"django-redis==5.4.0", # https://github.com/jazzband/django-redis
236
- {%- if cookiecutter.use_drf == 'y' % }
236
+ {%- if cookiecutter.use_drf == 'y' %}
237
237
# Django REST Framework
238
238
"djangorestframework==3.15.2", # https://github.com/encode/django-rest-framework
239
239
"django-cors-headers==4.4.0", # https://github.com/adamchainz/django-cors-headers
240
240
# DRF-spectacular for api documentation
241
241
"drf-spectacular==0.27.2", # https://github.com/tfranzel/drf-spectacular
242
- {%- endif % }
243
- {%- if cookiecutter.frontend_pipeline == 'Webpack' % }
242
+ {%- endif %}
243
+ {%- if cookiecutter.frontend_pipeline == 'Webpack' %}
244
244
"django-webpack-loader==3.1.1", # https://github.com/django-webpack/django-webpack-loader
245
- {%- endif % }
245
+ {%- endif %}
246
246
"gunicorn==23.0.0", # https://github.com/benoitc/gunicorn
247
247
"psycopg[c]==3.2.3", # https://github.com/psycopg/psycopg
248
- {%- if cookiecutter.use_whitenoise == 'n' % }
248
+ {%- if cookiecutter.use_whitenoise == 'n' %}
249
249
"Collectfasta==3.2.0", # https://github.com/jasongi/collectfasta
250
- {%- endif % }
251
- {%- if cookiecutter.use_sentry == "y" % }
250
+ {%- endif %}
251
+ {%- if cookiecutter.use_sentry == "y" %}
252
252
"sentry-sdk==2.15.0", # https://github.com/getsentry/sentry-python
253
- {%- endif % }
254
- {%- if cookiecutter.use_docker == "n" and cookiecutter.windows == "y" % }
253
+ {%- endif %}
254
+ {%- if cookiecutter.use_docker == "n" and cookiecutter.windows == "y" %}
255
255
"hiredis==3.0.0", # https://github.com/redis/hiredis-py
256
- {%- endif % }
256
+ {%- endif %}
257
257
# Django
258
258
# ------------------------------------------------------------------------------
259
- {%- if cookiecutter.cloud_provider == 'AWS' % }
259
+ {%- if cookiecutter.cloud_provider == 'AWS' %}
260
260
"django-storages[s3]==1.14.4", # https://github.com/jschneier/django-storages
261
- {%- elif cookiecutter.cloud_provider == 'GCP' % }
261
+ {%- elif cookiecutter.cloud_provider == 'GCP' %}
262
262
"django-storages[google]==1.14.4", # https://github.com/jschneier/django-storages
263
- {%- elif cookiecutter.cloud_provider == 'Azure' % }
263
+ {%- elif cookiecutter.cloud_provider == 'Azure' %}
264
264
"django-storages[azure]==1.14.4", # https://github.com/jschneier/django-storages
265
- {%- endif % }
266
- {%- if cookiecutter.mail_service == 'Mailgun' % }
265
+ {%- endif %}
266
+ {%- if cookiecutter.mail_service == 'Mailgun' %}
267
267
"django-anymail[mailgun]==12.0", # https://github.com/anymail/django-anymail
268
- {%- elif cookiecutter.mail_service == 'Amazon SES' % }
268
+ {%- elif cookiecutter.mail_service == 'Amazon SES' %}
269
269
"django-anymail[amazon-ses]==12.0", # https://github.com/anymail/django-anymail
270
- {%- elif cookiecutter.mail_service == 'Mailjet' % }
270
+ {%- elif cookiecutter.mail_service == 'Mailjet' %}
271
271
"django-anymail[mailjet]==12.0", # https://github.com/anymail/django-anymail
272
- {%- elif cookiecutter.mail_service == 'Mandrill' % }
272
+ {%- elif cookiecutter.mail_service == 'Mandrill' %}
273
273
"django-anymail[mandrill]==12.0", # https://github.com/anymail/django-anymail
274
- {%- elif cookiecutter.mail_service == 'Postmark' % }
274
+ {%- elif cookiecutter.mail_service == 'Postmark' %}
275
275
"django-anymail[postmark]==12.0", # https://github.com/anymail/django-anymail
276
- {%- elif cookiecutter.mail_service == 'Sendgrid' % }
276
+ {%- elif cookiecutter.mail_service == 'Sendgrid' %}
277
277
"django-anymail[sendgrid]==12.0", # https://github.com/anymail/django-anymail
278
- {%- elif cookiecutter.mail_service == 'Brevo' % }
278
+ {%- elif cookiecutter.mail_service == 'Brevo' %}
279
279
"django-anymail[brevo]==12.0", # https://github.com/anymail/django-anymail
280
- {%- elif cookiecutter.mail_service == 'SparkPost' % }
280
+ {%- elif cookiecutter.mail_service == 'SparkPost' %}
281
281
"django-anymail[sparkpost]==12.0", # https://github.com/anymail/django-anymail
282
- {%- elif cookiecutter.mail_service == 'Other SMTP' % }
282
+ {%- elif cookiecutter.mail_service == 'Other SMTP' %}
283
283
"django-anymail==12.0", # https://github.com/anymail/django-anymail
284
- {%- endif % }
284
+ {%- endif %}
285
285
]
0 commit comments