diff --git a/{{cookiecutter.project_slug}}/pyproject.toml b/{{cookiecutter.project_slug}}/pyproject.toml index 6049b85740..2c00f78c56 100644 --- a/{{cookiecutter.project_slug}}/pyproject.toml +++ b/{{cookiecutter.project_slug}}/pyproject.toml @@ -6,9 +6,9 @@ python_files = [ "tests.py", "test_*.py", ] -{%- if cookiecutter.frontend_pipeline == 'Gulp' % } +{%- if cookiecutter.frontend_pipeline == 'Gulp' %} norecursedirs = ["node_modules"] -{%- endif % } +{%- endif %} # ==== Coverage ==== [tool.coverage.run] @@ -26,9 +26,9 @@ warn_redundant_casts = true warn_unused_configs = true plugins = [ "mypy_django_plugin.main", - {%- if cookiecutter.use_drf == "y" % } + {%- if cookiecutter.use_drf == "y" %} "mypy_drf_plugin.main", - {%- endif % } + {%- endif %} ] [[tool.mypy.overrides]] @@ -145,23 +145,23 @@ force-single-line = true dev-dependencies = [ "Werkzeug[watchdog]==3.0.6", # https://github.com/pallets/werkzeug "ipdb==0.13.13", # https://github.com/gotcha/ipdb - {%- if cookiecutter.use_docker == 'y' % } + {%- if cookiecutter.use_docker == 'y' %} "psycopg[c]==3.2.3", # https://github.com/psycopg/psycopg - {%- else % } + {%- else %} "psycopg[binary]==3.2.3", # https://github.com/psycopg/psycopg - {%- endif % } - {%- if cookiecutter.use_async == 'y' or cookiecutter.use_celery == 'y' % } + {%- endif %} + {%- if cookiecutter.use_async == 'y' or cookiecutter.use_celery == 'y' %} "watchfiles==0.24.0", # https://github.com/samuelcolvin/watchfiles - {%- endif % } + {%- endif %} # Testing # ------------------------------------------------------------------------------ "mypy==1.11.2", # https://github.com/python/mypy "django-stubs[compatible-mypy]==5.1.0", # https://github.com/typeddjango/django-stubs "pytest==8.3.3", # https://github.com/pytest-dev/pytest "pytest-sugar==1.0.0", # https://github.com/Frozenball/pytest-sugar - {%- if cookiecutter.use_drf == "y" % } + {%- if cookiecutter.use_drf == "y" %} "djangorestframework-stubs==3.15.1", # https://github.com/typeddjango/djangorestframework-stubs - {%- endif % } + {%- endif %} # Documentation # ------------------------------------------------------------------------------ "sphinx==7.4.7", # https://github.com/sphinx-doc/sphinx @@ -195,32 +195,32 @@ requires-python = "==3.12.*" dependencies = [ "python-slugify==8.0.4", # https://github.com/un33k/python-slugify "Pillow==10.4.0", # https://github.com/python-pillow/Pillow - {%- if cookiecutter.frontend_pipeline == 'Django Compressor' % } - {%- if cookiecutter.windows == 'y' and cookiecutter.use_docker == 'n' % } + {%- if cookiecutter.frontend_pipeline == 'Django Compressor' %} + {%- if cookiecutter.windows == 'y' and cookiecutter.use_docker == 'n' %} "rcssmin==1.1.2", # --install-option="--without-c-extensions" # https://github.com/ndparker/rcssmin - {%- else % } + {%- else %} "rcssmin==1.1.2", # https://github.com/ndparker/rcssmin - {%- endif % } - {%- endif % } + {%- endif %} + {%- endif %} "argon2-cffi==23.1.0", # https://github.com/hynek/argon2_cffi - {%- if cookiecutter.use_whitenoise == 'y' % } + {%- if cookiecutter.use_whitenoise == 'y' %} "whitenoise==6.7.0", # https://github.com/evansd/whitenoise - {%- endif % } + {%- endif %} "redis==5.1.1", # https://github.com/redis/redis-py - {%- if cookiecutter.use_docker == "y" or cookiecutter.windows == "n" % } + {%- if cookiecutter.use_docker == "y" or cookiecutter.windows == "n" %} "hiredis==3.0.0", # https://github.com/redis/hiredis-py - {%- endif % } - {%- if cookiecutter.use_celery == "y" % } + {%- endif %} + {%- if cookiecutter.use_celery == "y" %} "celery==5.4.0", # pyup: < 6.0 # https://github.com/celery/celery "django-celery-beat==2.7.0", # https://github.com/celery/django-celery-beat - {%- if cookiecutter.use_docker == 'y' % } + {%- if cookiecutter.use_docker == 'y' %} "flower==2.0.1", # https://github.com/mher/flower - {%- endif % } - {%- endif % } - {%- if cookiecutter.use_async == 'y' % } + {%- endif %} + {%- endif %} + {%- if cookiecutter.use_async == 'y' %} "uvicorn[standard]==0.31.0", # https://github.com/encode/uvicorn "uvicorn-worker==0.2.0", # https://github.com/Kludex/uvicorn-worker - {%- endif % } + {%- endif %} # Django # ------------------------------------------------------------------------------ "django==5.0.9", # pyup: < 5.1 # https://www.djangoproject.com/ @@ -229,57 +229,57 @@ dependencies = [ "django-allauth[mfa]==65.0.2", # https://github.com/pennersr/django-allauth "django-crispy-forms==2.3", # https://github.com/django-crispy-forms/django-crispy-forms "crispy-bootstrap5==2024.10", # https://github.com/django-crispy-forms/crispy-bootstrap5 - {%- if cookiecutter.frontend_pipeline == 'Django Compressor' % } + {%- if cookiecutter.frontend_pipeline == 'Django Compressor' %} "django-compressor==4.5.1", # https://github.com/django-compressor/django-compressor - {%- endif % } + {%- endif %} "django-redis==5.4.0", # https://github.com/jazzband/django-redis - {%- if cookiecutter.use_drf == 'y' % } + {%- if cookiecutter.use_drf == 'y' %} # Django REST Framework "djangorestframework==3.15.2", # https://github.com/encode/django-rest-framework "django-cors-headers==4.4.0", # https://github.com/adamchainz/django-cors-headers # DRF-spectacular for api documentation "drf-spectacular==0.27.2", # https://github.com/tfranzel/drf-spectacular - {%- endif % } - {%- if cookiecutter.frontend_pipeline == 'Webpack' % } + {%- endif %} + {%- if cookiecutter.frontend_pipeline == 'Webpack' %} "django-webpack-loader==3.1.1", # https://github.com/django-webpack/django-webpack-loader - {%- endif % } + {%- endif %} "gunicorn==23.0.0", # https://github.com/benoitc/gunicorn "psycopg[c]==3.2.3", # https://github.com/psycopg/psycopg - {%- if cookiecutter.use_whitenoise == 'n' % } + {%- if cookiecutter.use_whitenoise == 'n' %} "Collectfasta==3.2.0", # https://github.com/jasongi/collectfasta - {%- endif % } - {%- if cookiecutter.use_sentry == "y" % } + {%- endif %} + {%- if cookiecutter.use_sentry == "y" %} "sentry-sdk==2.15.0", # https://github.com/getsentry/sentry-python - {%- endif % } - {%- if cookiecutter.use_docker == "n" and cookiecutter.windows == "y" % } + {%- endif %} + {%- if cookiecutter.use_docker == "n" and cookiecutter.windows == "y" %} "hiredis==3.0.0", # https://github.com/redis/hiredis-py - {%- endif % } + {%- endif %} # Django # ------------------------------------------------------------------------------ - {%- if cookiecutter.cloud_provider == 'AWS' % } + {%- if cookiecutter.cloud_provider == 'AWS' %} "django-storages[s3]==1.14.4", # https://github.com/jschneier/django-storages - {%- elif cookiecutter.cloud_provider == 'GCP' % } + {%- elif cookiecutter.cloud_provider == 'GCP' %} "django-storages[google]==1.14.4", # https://github.com/jschneier/django-storages - {%- elif cookiecutter.cloud_provider == 'Azure' % } + {%- elif cookiecutter.cloud_provider == 'Azure' %} "django-storages[azure]==1.14.4", # https://github.com/jschneier/django-storages - {%- endif % } - {%- if cookiecutter.mail_service == 'Mailgun' % } + {%- endif %} + {%- if cookiecutter.mail_service == 'Mailgun' %} "django-anymail[mailgun]==12.0", # https://github.com/anymail/django-anymail - {%- elif cookiecutter.mail_service == 'Amazon SES' % } + {%- elif cookiecutter.mail_service == 'Amazon SES' %} "django-anymail[amazon-ses]==12.0", # https://github.com/anymail/django-anymail - {%- elif cookiecutter.mail_service == 'Mailjet' % } + {%- elif cookiecutter.mail_service == 'Mailjet' %} "django-anymail[mailjet]==12.0", # https://github.com/anymail/django-anymail - {%- elif cookiecutter.mail_service == 'Mandrill' % } + {%- elif cookiecutter.mail_service == 'Mandrill' %} "django-anymail[mandrill]==12.0", # https://github.com/anymail/django-anymail - {%- elif cookiecutter.mail_service == 'Postmark' % } + {%- elif cookiecutter.mail_service == 'Postmark' %} "django-anymail[postmark]==12.0", # https://github.com/anymail/django-anymail - {%- elif cookiecutter.mail_service == 'Sendgrid' % } + {%- elif cookiecutter.mail_service == 'Sendgrid' %} "django-anymail[sendgrid]==12.0", # https://github.com/anymail/django-anymail - {%- elif cookiecutter.mail_service == 'Brevo' % } + {%- elif cookiecutter.mail_service == 'Brevo' %} "django-anymail[brevo]==12.0", # https://github.com/anymail/django-anymail - {%- elif cookiecutter.mail_service == 'SparkPost' % } + {%- elif cookiecutter.mail_service == 'SparkPost' %} "django-anymail[sparkpost]==12.0", # https://github.com/anymail/django-anymail - {%- elif cookiecutter.mail_service == 'Other SMTP' % } + {%- elif cookiecutter.mail_service == 'Other SMTP' %} "django-anymail==12.0", # https://github.com/anymail/django-anymail - {%- endif % } + {%- endif %} ]