Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
## Installation

You need [uv](https://docs.astral.sh/uv/), version >=0.6.0 (how to install [link](https://docs.astral.sh/uv/getting-started/installation/)).
It will install python 3.12 automatically if you don't have it yet.
It will install python 3.14 automatically if you don't have it yet.

```bash
uvx cookiecutter gh:fandsdev/django
Expand Down
2 changes: 1 addition & 1 deletion {{ cookiecutter.name }}/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Also, feel free to add as much django apps as you want.
## Installing on a local machine

The project dependencies are managed by [uv (version >0.6.0)](https://docs.astral.sh/uv/), (how to install [link](https://docs.astral.sh/uv/getting-started/installation/)).
Python 3.11 is required (uv will install it automatically).
Python 3.14 is required (uv will install it automatically).

Install requirements:

Expand Down
2 changes: 1 addition & 1 deletion {{ cookiecutter.name }}/compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
x-default-build-args: &default-build-args
PYTHON_VERSION: "3.12"
PYTHON_VERSION: "3.14"

x-default-environment: &default-environment
DATABASE_URL: postgres://postgres@postgres:5432/postgres
Expand Down
74 changes: 39 additions & 35 deletions {{ cookiecutter.name }}/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,50 +3,50 @@ name = "{{ cookiecutter.name }}"
version = "0.1.0"
description = "{{ cookiecutter.description }}"
readme = "README.md"
requires-python = ">=3.12, <3.13"
requires-python = ">=3.14, <3.15"
dependencies = [
"bcrypt>=4.3.0",
"celery==5.4.0",
"django-axes>=7.0.2",
"django-environ>=0.12.0",
"django-filter>=25.1",
"bcrypt>=5.0.0",
"celery==5.6.3",
"django-axes>=8.3.1",
"django-environ>=0.14.0",
"django-filter>=26.1",
"django-healthchecks>=1.5.0",
"django-ipware>=7.0.1",
"django-split-settings>=1.3.2",
"django-storages>=1.14.6",
"django>=5.2,<6.0",
"djangorestframework-simplejwt[crypto]>=5.5.0",
"djangorestframework>=3.15.2",
"drf-spectacular[sidecar]>=0.28.0",
"django>=5.2.16,<6.0",
"djangorestframework-simplejwt[crypto]>=5.5.1",
"djangorestframework>=3.17.1",
"drf-spectacular[sidecar]>=0.30.0",
"orjson>=3.11.9",
"pillow>=11.2.1",
"psycopg[binary]>=3.2.6",
"redis>=5.2.1",
"sentry-sdk>=2.27.0",
"whitenoise>=6.9.0",
"pillow>=12.3.0",
"psycopg[binary]>=3.3.4",
"redis>=8.0.1",
"sentry-sdk>=2.66.0",
"whitenoise>=6.12.0",
]

[dependency-groups]
dev = [
"django-stubs>=5.2.0",
"djangorestframework-stubs>=3.16.0",
"dotenv-linter>=0.7.0",
"faker>=37.8.0",
"freezegun>=1.5.1",
"ipython>=9.2.0",
"jedi>=0.19.2",
"model-bakery>=1.20.5",
"mypy>=1.15.0",
"pymarkdownlnt>=0.9.29",
"pytest-deadfixtures>=2.2.1",
"pytest-django>=4.11.1",
"pytest-env>=1.1.5",
"django-stubs>=6.0.7",
"djangorestframework-stubs>=3.17.0",
"dotenv-linter>=0.8.0",
"faker>=40.32.0",
"freezegun>=1.5.5",
"ipython>=9.15.0",
"jedi>=0.20.0",
"model-bakery>=1.24.0",
"mypy>=2.3.0",
"pymarkdownlnt>=0.9.39",
"pytest-deadfixtures>=3.1.0",
"pytest-django>=4.12.0",
"pytest-env>=1.7.0",
"pytest-freezer>=0.4.9",
"pytest-mock>=3.14.0",
"pytest-randomly>=3.16.0",
"pytest-xdist>=3.6.1",
"ruff>=0.11.7",
"toml-sort>=0.24.2",
"pytest-mock>=3.15.1",
"pytest-randomly>=4.1.0",
"pytest-xdist>=3.8.0",
"ruff>=0.15.22",
"toml-sort>=0.24.4",
"types-freezegun>=1.1.10",
"types-pillow>=10.2.0.20240822",
]
Expand Down Expand Up @@ -163,13 +163,18 @@ lines-after-imports = 2
max-complexity = 6

[tool.ruff.lint.per-file-ignores]
"src/manage.py" = [
"PLC0415", # `import` should be at the top-level of a file (Django keeps it inside main() for a friendly error)
]
"*/factory.py" = [
"ANN", # flake8-annotations
"ARG001",
"UP037", # remove quotes from type annotation (kept: forward ref is evaluated at runtime via inspect.signature)
]
"*/fixtures.py" = [
"ANN", # flake8-annotations
"ARG001",
"UP037", # remove quotes from type annotation (kept: pytest evaluates the fixture's annotations at runtime)
]
"*/management/*" = [
"ANN", # flake8-annotations
Expand All @@ -192,7 +197,7 @@ max-complexity = 6
]

[tool.mypy]
python_version = "3.12"
python_version = "3.14"
mypy_path = "src"
files = "src"
namespace_packages = true
Expand Down Expand Up @@ -226,7 +231,6 @@ disallow_untyped_defs = false
module = [
"axes.*",
"celery.*",
"django_filters.*",
"ipware.*",
]
ignore_missing_imports = true
Expand Down
2 changes: 1 addition & 1 deletion {{ cookiecutter.name }}/src/app/api/viewsets.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def get_serializer_class(

try:
return self.serializer_action_classes[action] # type: ignore[attr-defined]
except (KeyError, AttributeError):
except KeyError, AttributeError:
return super().get_serializer_class() # type: ignore[safe-super]


Expand Down
Loading
Loading