From 1eb929acde1260cb7b0880160dbf631e1195c659 Mon Sep 17 00:00:00 2001 From: Slava Nv Date: Tue, 21 Nov 2023 14:44:22 +0300 Subject: [PATCH] updated requirements txt (#566) --- .../dev-requirements.txt | 203 +++++++++--------- .../requirements.txt | 84 ++++---- .../src/app/api/viewsets.py | 2 +- .../src/app/conf/http.py | 2 +- .../src/users/models.py | 5 +- 5 files changed, 150 insertions(+), 146 deletions(-) diff --git a/{{cookiecutter.project_slug}}/dev-requirements.txt b/{{cookiecutter.project_slug}}/dev-requirements.txt index 3844b0be..201c8d2b 100644 --- a/{{cookiecutter.project_slug}}/dev-requirements.txt +++ b/{{cookiecutter.project_slug}}/dev-requirements.txt @@ -1,58 +1,57 @@ # -# This file is autogenerated by pip-compile with Python 3.10 +# This file is autogenerated by pip-compile with Python 3.11 # by the following command: # -# pip-compile --extra=dev --output-file=dev-requirements.txt --resolver=backtracking pyproject.toml +# pip-compile --extra=dev --output-file=dev-requirements.txt pyproject.toml # appnope==0.1.3 # via ipython -asgiref==3.6.0 +asgiref==3.7.2 # via django astor==0.8.1 # via flake8-simplify -asttokens==2.2.1 +astroid==2.15.8 + # via flake8-django +asttokens==2.4.1 # via stack-data -async-timeout==4.0.2 - # via redis -attrs==22.2.0 +attrs==23.1.0 # via # dotenv-linter # flake8-bugbear # flake8-eradicate # jsonschema - # pytest + # referencing autoflake==1.7.0 -backcall==0.2.0 - # via ipython + # via django (pyproject.toml) bcrypt==4.0.1 # via django (pyproject.toml) -black==23.1.0 +black==23.11.0 # via # django (pyproject.toml) # flake8-black -certifi==2022.12.7 +certifi==2023.11.17 # via # django-healthchecks # requests # sentry-sdk -cffi==1.15.1 +cffi==1.16.0 # via cryptography -charset-normalizer==3.0.1 +charset-normalizer==3.3.2 # via requests -click==8.1.3 +click==8.1.7 # via # black # click-default-group # dotenv-linter -click-default-group==1.2.2 +click-default-group==1.2.4 # via dotenv-linter cognitive-complexity==1.3.0 # via flake8-cognitive-complexity -cryptography==41.0.0 +cryptography==41.0.5 # via pyjwt decorator==5.1.1 # via ipython -django==3.2.19 +django==4.2.7 # via # django (pyproject.toml) # django-axes @@ -65,56 +64,52 @@ django==3.2.19 # drf-jwt # drf-spectacular # drf-spectacular-sidecar -django-axes==5.40.1 +django-axes==6.1.1 # via django (pyproject.toml) django-behaviors==0.5.1 # via django (pyproject.toml) -django-environ==0.9.0 +django-environ==0.11.2 # via django (pyproject.toml) -django-filter==22.1 +django-filter==23.4 # via django (pyproject.toml) django-healthchecks==1.5.0 # via django (pyproject.toml) -django-ipware==4.0.2 - # via - # django (pyproject.toml) - # django-axes +django-ipware==5.0.2 + # via django (pyproject.toml) django-split-settings==1.2.0 # via django (pyproject.toml) -django-storages==1.13.2 +django-storages==1.14.2 # via django (pyproject.toml) -django-stubs==1.14.0 +django-stubs==4.2.6 # via # django (pyproject.toml) # djangorestframework-stubs -django-stubs-ext==0.7.0 +django-stubs-ext==4.2.5 # via django-stubs djangorestframework==3.14.0 # via # django (pyproject.toml) # drf-jwt # drf-spectacular -djangorestframework-camel-case==1.3.0 +djangorestframework-camel-case==1.4.2 # via django (pyproject.toml) -djangorestframework-stubs==1.8.0 +djangorestframework-stubs==3.14.4 # via django (pyproject.toml) dotenv-linter==0.4.0 # via django (pyproject.toml) drf-jwt==1.19.2 # via django (pyproject.toml) -drf-spectacular[sidecar]==0.25.1 +drf-spectacular[sidecar]==0.26.5 # via django (pyproject.toml) -drf-spectacular-sidecar==2022.12.1 +drf-spectacular-sidecar==2023.10.1 # via drf-spectacular -eradicate==2.1.0 +eradicate==2.3.0 # via flake8-eradicate -exceptiongroup==1.1.0 - # via pytest -executing==1.2.0 +executing==2.0.1 # via stack-data faker==12.0.1 # via mixer -flake8==5.0.4 +flake8==6.1.0 # via # flake8-absolute-import # flake8-black @@ -130,45 +125,45 @@ flake8==5.0.4 # flake8-simplify # flake8-use-fstring # flake8-walrus -flake8-absolute-import==1.0.0.1 +flake8-absolute-import==1.0.0.2 # via django (pyproject.toml) flake8-black==0.3.6 # via django (pyproject.toml) -flake8-bugbear==23.1.20 +flake8-bugbear==23.9.16 # via django (pyproject.toml) flake8-cognitive-complexity==0.1.0 # via django (pyproject.toml) -flake8-django==1.1.5 +flake8-django==1.4 # via django (pyproject.toml) -flake8-eradicate==1.4.0 +flake8-eradicate==1.5.0 # via django (pyproject.toml) flake8-fixme==1.1.1 # via django (pyproject.toml) -flake8-isort==6.0.0 +flake8-isort==6.1.1 # via django (pyproject.toml) -flake8-pep3101==2.0.0 +flake8-pep3101==2.1.0 # via django (pyproject.toml) flake8-pie==0.16.0 # via django (pyproject.toml) -flake8-plugin-utils==1.3.2 +flake8-plugin-utils==1.3.3 # via flake8-pytest-style flake8-print==5.0.0 # via django (pyproject.toml) flake8-printf-formatting==1.1.2 # via django (pyproject.toml) -flake8-pyproject==1.2.2 +flake8-pyproject==1.2.3 # via django (pyproject.toml) flake8-pytest==1.4 # via django (pyproject.toml) -flake8-pytest-style==1.6.0 +flake8-pytest-style==1.7.2 # via django (pyproject.toml) -flake8-simplify==0.19.3 +flake8-simplify==0.21.0 # via django (pyproject.toml) flake8-todo==0.7 # via django (pyproject.toml) flake8-use-fstring==1.4 # via django (pyproject.toml) -flake8-variables-names==0.0.5 +flake8-variables-names==0.0.6 # via django (pyproject.toml) flake8-walrus==1.2.0 # via django (pyproject.toml) @@ -182,75 +177,78 @@ inflection==0.5.1 # via drf-spectacular iniconfig==2.0.0 # via pytest -ipython==8.9.0 +ipython==8.17.2 # via django (pyproject.toml) isort==5.12.0 # via flake8-isort -jedi==0.18.2 +jedi==0.19.1 # via # django (pyproject.toml) # ipython -jsonschema==4.17.3 +jsonschema==4.20.0 # via drf-spectacular +jsonschema-specifications==2023.11.1 + # via jsonschema +lazy-object-proxy==1.9.0 + # via astroid matplotlib-inline==0.1.6 # via ipython mccabe==0.7.0 # via flake8 mixer==7.2.2 # via django (pyproject.toml) -mypy==0.991 +mypy==1.7.0 # via # django (pyproject.toml) - # django-stubs # djangorestframework-stubs mypy-extensions==1.0.0 # via # black # mypy -packaging==23.0 +packaging==23.2 # via # black # pytest parso==0.8.3 # via jedi -pathspec==0.11.0 +pathspec==0.11.2 # via black pexpect==4.8.0 # via ipython -pickleshare==0.7.5 - # via ipython -pillow==9.4.0 +pillow==10.1.0 # via django (pyproject.toml) -platformdirs==2.6.2 +platformdirs==4.0.0 # via black -pluggy==1.0.0 +pluggy==1.3.0 # via pytest ply==3.11 # via dotenv-linter -prompt-toolkit==3.0.36 +prompt-toolkit==3.0.41 # via ipython -psycopg2-binary==2.9.5 +psycopg2-binary==2.9.9 # via django (pyproject.toml) ptyprocess==0.7.0 # via pexpect pure-eval==0.2.2 # via stack-data -pycodestyle==2.9.1 +pycodestyle==2.11.1 # via # flake8 # flake8-print # flake8-todo pycparser==2.21 # via cffi -pyflakes==2.5.0 - # via flake8 -pygments==2.14.0 +pyflakes==3.1.0 + # via + # autoflake + # flake8 +pygments==2.17.1 # via ipython -pyjwt[crypto]==2.6.0 - # via drf-jwt -pyrsistent==0.19.3 - # via jsonschema -pytest==7.2.1 +pyjwt[crypto]==2.8.0 + # via + # drf-jwt + # pyjwt +pytest==7.4.3 # via # pytest-deadfixtures # pytest-django @@ -260,69 +258,65 @@ pytest==7.2.1 # pytest-randomly pytest-deadfixtures==2.2.1 # via django (pyproject.toml) -pytest-django==4.5.2 +pytest-django==4.7.0 # via django (pyproject.toml) -pytest-env==0.8.1 +pytest-env==1.1.1 # via django (pyproject.toml) pytest-freezegun==0.4.2 # via django (pyproject.toml) -pytest-mock==3.10.0 +pytest-mock==3.12.0 # via django (pyproject.toml) -pytest-randomly==3.12.0 +pytest-randomly==3.15.0 # via django (pyproject.toml) python-dateutil==2.8.2 # via # faker # freezegun -pytz==2022.7.1 - # via - # django - # djangorestframework -pyyaml==6.0 +pytz==2023.3.post1 + # via djangorestframework +pyyaml==6.0.1 # via drf-spectacular -redis==4.4.2 +redis==5.0.1 # via django (pyproject.toml) +referencing==0.31.0 + # via + # jsonschema + # jsonschema-specifications requests==2.31.0 # via # django-healthchecks # djangorestframework-stubs -sentry-sdk==1.14.0 +rpds-py==0.13.1 + # via + # jsonschema + # referencing +sentry-sdk==1.35.0 # via django (pyproject.toml) six==1.16.0 # via # asttokens # python-dateutil -sqlparse==0.4.3 +sqlparse==0.4.4 # via django -stack-data==0.6.2 +stack-data==0.6.3 # via ipython -tomli==2.0.1 - # via - # black - # django-stubs - # flake8-black - # flake8-pyproject - # mypy - # pytest -traitlets==5.9.0 +traitlets==5.13.0 # via # ipython # matplotlib-inline types-freezegun==1.1.10 # via django (pyproject.toml) -types-pillow==9.4.0.6 +types-pillow==10.1.0.2 # via django (pyproject.toml) -types-pytz==2022.7.1.0 +types-pytz==2023.3.1.1 # via django-stubs -types-pyyaml==6.0.12.4 +types-pyyaml==6.0.12.12 # via # django-stubs # djangorestframework-stubs -types-requests==2.28.11.8 +types-requests==2.31.0.10 # via djangorestframework-stubs -types-urllib3==1.26.25.4 - # via types-requests -typing-extensions==4.4.0 +typing-extensions==4.8.0 # via # django-stubs # django-stubs-ext @@ -332,14 +326,17 @@ typing-extensions==4.4.0 # mypy uritemplate==4.1.1 # via drf-spectacular -urllib3==1.26.14 +urllib3==2.1.0 # via # requests # sentry-sdk -wcwidth==0.2.6 + # types-requests +wcwidth==0.2.11 # via prompt-toolkit -whitenoise==6.3.0 +whitenoise==6.6.0 # via django (pyproject.toml) +wrapt==1.16.0 + # via astroid # The following packages are considered to be unsafe in a requirements file: # setuptools diff --git a/{{cookiecutter.project_slug}}/requirements.txt b/{{cookiecutter.project_slug}}/requirements.txt index e21a916c..89a2fb0b 100644 --- a/{{cookiecutter.project_slug}}/requirements.txt +++ b/{{cookiecutter.project_slug}}/requirements.txt @@ -1,29 +1,29 @@ # -# This file is autogenerated by pip-compile with Python 3.10 +# This file is autogenerated by pip-compile with Python 3.11 # by the following command: # -# pip-compile --output-file=requirements.txt --resolver=backtracking pyproject.toml +# pip-compile --output-file=requirements.txt pyproject.toml # -asgiref==3.6.0 +asgiref==3.7.2 # via django -async-timeout==4.0.2 - # via redis -attrs==22.2.0 - # via jsonschema +attrs==23.1.0 + # via + # jsonschema + # referencing bcrypt==4.0.1 # via django (pyproject.toml) -certifi==2022.12.7 +certifi==2023.11.17 # via # django-healthchecks # requests # sentry-sdk -cffi==1.15.1 +cffi==1.16.0 # via cryptography -charset-normalizer==3.0.1 +charset-normalizer==3.3.2 # via requests -cryptography==41.0.0 +cryptography==41.0.5 # via pyjwt -django==3.2.19 +django==4.2.7 # via # django (pyproject.toml) # django-axes @@ -34,74 +34,80 @@ django==3.2.19 # drf-jwt # drf-spectacular # drf-spectacular-sidecar -django-axes==5.40.1 +django-axes==6.1.1 # via django (pyproject.toml) django-behaviors==0.5.1 # via django (pyproject.toml) -django-environ==0.9.0 +django-environ==0.11.2 # via django (pyproject.toml) -django-filter==22.1 +django-filter==23.4 # via django (pyproject.toml) django-healthchecks==1.5.0 # via django (pyproject.toml) -django-ipware==4.0.2 - # via - # django (pyproject.toml) - # django-axes +django-ipware==5.0.2 + # via django (pyproject.toml) django-split-settings==1.2.0 # via django (pyproject.toml) -django-storages==1.13.2 +django-storages==1.14.2 # via django (pyproject.toml) djangorestframework==3.14.0 # via # django (pyproject.toml) # drf-jwt # drf-spectacular -djangorestframework-camel-case==1.3.0 +djangorestframework-camel-case==1.4.2 # via django (pyproject.toml) drf-jwt==1.19.2 # via django (pyproject.toml) -drf-spectacular[sidecar]==0.25.1 +drf-spectacular[sidecar]==0.26.5 # via django (pyproject.toml) -drf-spectacular-sidecar==2022.12.1 +drf-spectacular-sidecar==2023.10.1 # via drf-spectacular idna==3.4 # via requests inflection==0.5.1 # via drf-spectacular -jsonschema==4.17.3 +jsonschema==4.20.0 # via drf-spectacular -pillow==9.4.0 +jsonschema-specifications==2023.11.1 + # via jsonschema +pillow==10.1.0 # via django (pyproject.toml) -psycopg2-binary==2.9.5 +psycopg2-binary==2.9.9 # via django (pyproject.toml) pycparser==2.21 # via cffi -pyjwt[crypto]==2.6.0 - # via drf-jwt -pyrsistent==0.19.3 - # via jsonschema -pytz==2022.7.1 +pyjwt[crypto]==2.8.0 # via - # django - # djangorestframework -pyyaml==6.0 + # drf-jwt + # pyjwt +pytz==2023.3.post1 + # via djangorestframework +pyyaml==6.0.1 # via drf-spectacular -redis==4.4.2 +redis==5.0.1 # via django (pyproject.toml) +referencing==0.31.0 + # via + # jsonschema + # jsonschema-specifications requests==2.31.0 # via django-healthchecks -sentry-sdk==1.14.0 +rpds-py==0.13.1 + # via + # jsonschema + # referencing +sentry-sdk==1.35.0 # via django (pyproject.toml) -sqlparse==0.4.3 +sqlparse==0.4.4 # via django uritemplate==4.1.1 # via drf-spectacular -urllib3==1.26.14 +urllib3==2.1.0 # via # requests # sentry-sdk -whitenoise==6.3.0 +whitenoise==6.6.0 # via django (pyproject.toml) # The following packages are considered to be unsafe in a requirements file: diff --git a/{{cookiecutter.project_slug}}/src/app/api/viewsets.py b/{{cookiecutter.project_slug}}/src/app/api/viewsets.py index 0303f45e..f64616d1 100644 --- a/{{cookiecutter.project_slug}}/src/app/api/viewsets.py +++ b/{{cookiecutter.project_slug}}/src/app/api/viewsets.py @@ -118,7 +118,7 @@ def get_serializer_class( try: return self.serializer_action_classes[action] # type: ignore except (KeyError, AttributeError): - return super().get_serializer_class() # type: ignore + return super().get_serializer_class() class DefaultModelViewSet( diff --git a/{{cookiecutter.project_slug}}/src/app/conf/http.py b/{{cookiecutter.project_slug}}/src/app/conf/http.py index cfa86cf0..ff265e4f 100644 --- a/{{cookiecutter.project_slug}}/src/app/conf/http.py +++ b/{{cookiecutter.project_slug}}/src/app/conf/http.py @@ -2,7 +2,7 @@ ALLOWED_HOSTS = ["*"] # host validation is not necessary in 2020 CSRF_TRUSTED_ORIGINS = [ - "your.app.origin", + "http://your.app.origin", ] if env("DEBUG"): diff --git a/{{cookiecutter.project_slug}}/src/users/models.py b/{{cookiecutter.project_slug}}/src/users/models.py index 70ce6ae8..5c821928 100644 --- a/{{cookiecutter.project_slug}}/src/users/models.py +++ b/{{cookiecutter.project_slug}}/src/users/models.py @@ -1,6 +1,7 @@ from django.contrib.auth.models import AbstractUser from django.contrib.auth.models import UserManager as _UserManager +from typing import ClassVar -class User(AbstractUser): - objects = _UserManager() # type: _UserManager +class User(AbstractUser): # noqa + objects: ClassVar[_UserManager] = _UserManager()