From 93dafb6a81fe6ea73dfdb8243be771dcfb2a2b3a Mon Sep 17 00:00:00 2001 From: Matteo Rosati Date: Wed, 11 Feb 2026 20:52:23 +0100 Subject: [PATCH] add django-stubs --- bun.lock | 1 + pyproject.toml | 1 + requirements.txt | 3 +++ uv.lock | 39 +++++++++++++++++++++++++++++++++++++++ 4 files changed, 44 insertions(+) diff --git a/bun.lock b/bun.lock index ec3f6af..0470143 100644 --- a/bun.lock +++ b/bun.lock @@ -1,5 +1,6 @@ { "lockfileVersion": 1, + "configVersion": 0, "workspaces": { "": { "dependencies": { diff --git a/pyproject.toml b/pyproject.toml index b25f1b5..b8efd36 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,6 +7,7 @@ requires-python = ">=3.13" dependencies = [ "django>=6.0.2", "django-ratelimit>=4.1.0", + "django-stubs>=5.2.9", "djangorestframework>=3.16.1", "djangorestframework-simplejwt>=5.5.0", "ipython>=9.10.0", diff --git a/requirements.txt b/requirements.txt index c885adc..687b2da 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,6 +5,8 @@ click==8.3.1 decorator==5.2.1 django==6.0.2 django-ratelimit==4.1.0 +django-stubs==5.2.9 +django-stubs-ext==5.2.9 djangorestframework==3.16.1 djangorestframework-simplejwt==5.5.1 executing==2.2.1 @@ -26,6 +28,7 @@ python-dotenv==1.2.1 sqlparse==0.5.5 stack-data==0.6.3 traitlets==5.14.3 +types-pyyaml==6.0.12.20250915 typing-extensions==4.15.0 typing-inspection==0.4.2 uvicorn==0.40.0 diff --git a/uv.lock b/uv.lock index f5db5dd..42b58d6 100644 --- a/uv.lock +++ b/uv.lock @@ -82,6 +82,34 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/fb/78/2c59b30cd8bc8068d02349acb6aeed5c4e05eb01cdf2107ccd76f2e81487/django_ratelimit-4.1.0-py2.py3-none-any.whl", hash = "sha256:d047a31cf94d83ef1465d7543ca66c6fc16695559b5f8d814d1b51df15110b92", size = 11608, upload-time = "2023-07-24T20:34:31.362Z" }, ] +[[package]] +name = "django-stubs" +version = "5.2.9" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "django" }, + { name = "django-stubs-ext" }, + { name = "types-pyyaml" }, + { name = "typing-extensions" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/9c/01/86c921e0e19c9fa7e705bf795998dbf55eb183e7be0342a3027dc1bcbc9f/django_stubs-5.2.9.tar.gz", hash = "sha256:c192257120b08785cfe6f2f1c91f1797aceae8e9daa689c336e52c91e8f6a493", size = 257970, upload-time = "2026-01-20T23:59:27.018Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/0d/05/4c9c419b7051eb4b350100b086be6df487f968ab672d3d370f8ccf7c3746/django_stubs-5.2.9-py3-none-any.whl", hash = "sha256:2317a7130afdaa76f6ff7f623650d7f3bf1b6c86a60f95840e14e6ec6de1a7cd", size = 508656, upload-time = "2026-01-20T23:59:25.12Z" }, +] + +[[package]] +name = "django-stubs-ext" +version = "5.2.9" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "django" }, + { name = "typing-extensions" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/55/03/9c2be939490d2282328db4611bc5956899f5ff7eabc3e88bd4b964a87373/django_stubs_ext-5.2.9.tar.gz", hash = "sha256:6db4054d1580657b979b7d391474719f1a978773e66c7070a5e246cd445a25a9", size = 6497, upload-time = "2026-01-20T23:58:59.462Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/9b/f7/0d5f7d7e76fe972d9f560f687fdc0cab4db9e1624fd90728ca29b4ed7a63/django_stubs_ext-5.2.9-py3-none-any.whl", hash = "sha256:230c51575551b0165be40177f0f6805f1e3ebf799b835c85f5d64c371ca6cf71", size = 9974, upload-time = "2026-01-20T23:58:58.438Z" }, +] + [[package]] name = "djangorestframework" version = "3.16.1" @@ -115,6 +143,7 @@ source = { virtual = "." } dependencies = [ { name = "django" }, { name = "django-ratelimit" }, + { name = "django-stubs" }, { name = "djangorestframework" }, { name = "djangorestframework-simplejwt" }, { name = "ipython" }, @@ -128,6 +157,7 @@ dependencies = [ requires-dist = [ { name = "django", specifier = ">=6.0.2" }, { name = "django-ratelimit", specifier = ">=4.1.0" }, + { name = "django-stubs", specifier = ">=5.2.9" }, { name = "djangorestframework", specifier = ">=3.16.1" }, { name = "djangorestframework-simplejwt", specifier = ">=5.5.0" }, { name = "ipython", specifier = ">=9.10.0" }, @@ -390,6 +420,15 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/00/c0/8f5d070730d7836adc9c9b6408dec68c6ced86b304a9b26a14df072a6e8c/traitlets-5.14.3-py3-none-any.whl", hash = "sha256:b74e89e397b1ed28cc831db7aea759ba6640cb3de13090ca145426688ff1ac4f", size = 85359, upload-time = "2024-04-19T11:11:46.763Z" }, ] +[[package]] +name = "types-pyyaml" +version = "6.0.12.20250915" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/7e/69/3c51b36d04da19b92f9e815be12753125bd8bc247ba0470a982e6979e71c/types_pyyaml-6.0.12.20250915.tar.gz", hash = "sha256:0f8b54a528c303f0e6f7165687dd33fafa81c807fcac23f632b63aa624ced1d3", size = 17522, upload-time = "2025-09-15T03:01:00.728Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/bd/e0/1eed384f02555dde685fff1a1ac805c1c7dcb6dd019c916fe659b1c1f9ec/types_pyyaml-6.0.12.20250915-py3-none-any.whl", hash = "sha256:e7d4d9e064e89a3b3cae120b4990cd370874d2bf12fa5f46c97018dd5d3c9ab6", size = 20338, upload-time = "2025-09-15T03:00:59.218Z" }, +] + [[package]] name = "typing-extensions" version = "4.15.0"