From bd7b71ed9141f2f1fb80820c40c00dc2b13385a7 Mon Sep 17 00:00:00 2001 From: Maria Grimaldi Date: Mon, 13 Jan 2025 17:56:05 +0100 Subject: [PATCH] build: add mypy requirements --- requirements/dev.txt | 25 ++++++++++++++++++++++++- requirements/doc.txt | 27 +++++++++++++++++++++++++-- requirements/pip.txt | 2 +- requirements/quality.txt | 25 ++++++++++++++++++++++++- requirements/test.in | 2 ++ requirements/test.txt | 16 ++++++++++++++++ 6 files changed, 92 insertions(+), 5 deletions(-) diff --git a/requirements/dev.txt b/requirements/dev.txt index 394dc484..b8ab1edf 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -8,6 +8,7 @@ asgiref==3.8.1 # via # -r requirements/quality.txt # django + # django-stubs astroid==3.3.8 # via # -r requirements/quality.txt @@ -86,6 +87,14 @@ django==4.2.17 # via # -c https://raw.githubusercontent.com/edx/edx-lint/master/edx_lint/files/common_constraints.txt # -r requirements/quality.txt + # django-stubs + # django-stubs-ext +django-stubs==5.1.1 + # via -r requirements/quality.txt +django-stubs-ext==5.1.1 + # via + # -r requirements/quality.txt + # django-stubs dnspython==2.7.0 # via # -r requirements/quality.txt @@ -166,6 +175,12 @@ more-itertools==10.5.0 # -r requirements/quality.txt # jaraco-classes # jaraco-functools +mypy==1.14.1 + # via -r requirements/quality.txt +mypy-extensions==1.0.0 + # via + # -r requirements/quality.txt + # mypy nh3==0.2.20 # via # -r requirements/quality.txt @@ -322,12 +337,20 @@ tox==4.23.2 # via -r requirements/ci.txt twine==6.0.1 # via -r requirements/quality.txt +types-pyyaml==6.0.12.20241230 + # via + # -r requirements/quality.txt + # django-stubs typing-extensions==4.12.2 # via # -r requirements/quality.txt + # django-stubs + # django-stubs-ext # edx-opaque-keys -urllib3==2.3.0 + # mypy +urllib3==2.2.3 # via + # -c https://raw.githubusercontent.com/edx/edx-lint/master/edx_lint/files/common_constraints.txt # -r requirements/quality.txt # requests # twine diff --git a/requirements/doc.txt b/requirements/doc.txt index 2b1797ea..989f906a 100644 --- a/requirements/doc.txt +++ b/requirements/doc.txt @@ -16,6 +16,7 @@ asgiref==3.8.1 # via # -r requirements/test.txt # django + # django-stubs babel==2.16.0 # via # pydata-sphinx-theme @@ -53,6 +54,14 @@ django==4.2.17 # via # -c https://raw.githubusercontent.com/edx/edx-lint/master/edx_lint/files/common_constraints.txt # -r requirements/test.txt + # django-stubs + # django-stubs-ext +django-stubs==5.1.1 + # via -r requirements/test.txt +django-stubs-ext==5.1.1 + # via + # -r requirements/test.txt + # django-stubs dnspython==2.7.0 # via # -r requirements/test.txt @@ -111,6 +120,12 @@ more-itertools==10.5.0 # via # jaraco-classes # jaraco-functools +mypy==1.14.1 + # via -r requirements/test.txt +mypy-extensions==1.0.0 + # via + # -r requirements/test.txt + # mypy nh3==0.2.20 # via readme-renderer packaging==24.2 @@ -238,19 +253,27 @@ text-unidecode==1.3 # python-slugify twine==6.0.1 # via -r requirements/doc.in +types-pyyaml==6.0.12.20241230 + # via + # -r requirements/test.txt + # django-stubs typing-extensions==4.12.2 # via # -r requirements/test.txt # anyio + # django-stubs + # django-stubs-ext # edx-opaque-keys + # mypy # pydata-sphinx-theme -urllib3==2.3.0 +urllib3==2.2.3 # via + # -c https://raw.githubusercontent.com/edx/edx-lint/master/edx_lint/files/common_constraints.txt # requests # twine uvicorn==0.34.0 # via sphinx-autobuild -watchfiles==1.0.3 +watchfiles==1.0.4 # via sphinx-autobuild websockets==14.1 # via sphinx-autobuild diff --git a/requirements/pip.txt b/requirements/pip.txt index b3dce14a..e6c3348b 100644 --- a/requirements/pip.txt +++ b/requirements/pip.txt @@ -12,5 +12,5 @@ pip==24.2 # via # -c https://raw.githubusercontent.com/edx/edx-lint/master/edx_lint/files/common_constraints.txt # -r requirements/pip.in -setuptools==75.7.0 +setuptools==75.8.0 # via -r requirements/pip.in diff --git a/requirements/quality.txt b/requirements/quality.txt index 7650d604..8f0e72f5 100644 --- a/requirements/quality.txt +++ b/requirements/quality.txt @@ -8,6 +8,7 @@ asgiref==3.8.1 # via # -r requirements/test.txt # django + # django-stubs astroid==3.3.8 # via # pylint @@ -46,6 +47,14 @@ django==4.2.17 # via # -c https://raw.githubusercontent.com/edx/edx-lint/master/edx_lint/files/common_constraints.txt # -r requirements/test.txt + # django-stubs + # django-stubs-ext +django-stubs==5.1.1 + # via -r requirements/test.txt +django-stubs-ext==5.1.1 + # via + # -r requirements/test.txt + # django-stubs dnspython==2.7.0 # via # -r requirements/test.txt @@ -98,6 +107,12 @@ more-itertools==10.5.0 # via # jaraco-classes # jaraco-functools +mypy==1.14.1 + # via -r requirements/test.txt +mypy-extensions==1.0.0 + # via + # -r requirements/test.txt + # mypy nh3==0.2.20 # via readme-renderer packaging==24.2 @@ -197,12 +212,20 @@ tomlkit==0.13.2 # via pylint twine==6.0.1 # via -r requirements/quality.in +types-pyyaml==6.0.12.20241230 + # via + # -r requirements/test.txt + # django-stubs typing-extensions==4.12.2 # via # -r requirements/test.txt + # django-stubs + # django-stubs-ext # edx-opaque-keys -urllib3==2.3.0 + # mypy +urllib3==2.2.3 # via + # -c https://raw.githubusercontent.com/edx/edx-lint/master/edx_lint/files/common_constraints.txt # requests # twine zipp==3.21.0 diff --git a/requirements/test.in b/requirements/test.in index 3af36bf2..a3b03468 100644 --- a/requirements/test.in +++ b/requirements/test.in @@ -7,3 +7,5 @@ ddt # A library to multiply test cases pytest-cov # pytest extension for code coverage statistics pytest-django # pytest extension for better Django support code-annotations # provides commands used by the pii_check make target. +django-stubs # Typing stubs for Django, so it works with mypy +mypy # static type checking diff --git a/requirements/test.txt b/requirements/test.txt index 63c39f40..09ba4654 100644 --- a/requirements/test.txt +++ b/requirements/test.txt @@ -8,6 +8,7 @@ asgiref==3.8.1 # via # -r requirements/base.txt # django + # django-stubs click==8.1.8 # via code-annotations code-annotations==2.1.0 @@ -20,6 +21,12 @@ django==4.2.17 # via # -c https://raw.githubusercontent.com/edx/edx-lint/master/edx_lint/files/common_constraints.txt # -r requirements/base.txt + # django-stubs + # django-stubs-ext +django-stubs==5.1.1 + # via -r requirements/test.in +django-stubs-ext==5.1.1 + # via django-stubs dnspython==2.7.0 # via # -r requirements/base.txt @@ -32,6 +39,10 @@ jinja2==3.1.5 # via code-annotations markupsafe==3.0.2 # via jinja2 +mypy==1.14.1 + # via -r requirements/test.in +mypy-extensions==1.0.0 + # via mypy packaging==24.2 # via pytest pbr==6.1.0 @@ -67,7 +78,12 @@ stevedore==5.4.0 # edx-opaque-keys text-unidecode==1.3 # via python-slugify +types-pyyaml==6.0.12.20241230 + # via django-stubs typing-extensions==4.12.2 # via # -r requirements/base.txt + # django-stubs + # django-stubs-ext # edx-opaque-keys + # mypy