From 526d3ebcb4d1df5f364fe06f699f93e8b3ab62cb Mon Sep 17 00:00:00 2001 From: mign0n Date: Tue, 27 Feb 2024 18:37:27 +0500 Subject: [PATCH 1/3] chore: Add ignoring the 'W503' error in flake8 as it is incompatible with PEP8. --- .flake8 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.flake8 b/.flake8 index 4a00c76..0bfaa12 100644 --- a/.flake8 +++ b/.flake8 @@ -1,5 +1,5 @@ [flake8] -ignore = E501, E265, F811, PT001, DJ05, D100, D105, D104, W504, W292 +ignore = E501, E265, F811, PT001, DJ05, D100, D105, D104, W503, W504, W292 max-line-length = 79 paths = ./app From 5a5bbd960d2ae1155733716c549cbd8fedc2b4ba Mon Sep 17 00:00:00 2001 From: mign0n Date: Tue, 27 Feb 2024 21:14:34 +0500 Subject: [PATCH 2/3] chore: Update requirements. --- pyproject.toml | 55 +++++++++++ requirements.txt | 241 ++++++++++++++++++++++++++++++++++++----------- 2 files changed, 239 insertions(+), 57 deletions(-) create mode 100644 pyproject.toml diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..fa98d0a --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,55 @@ +[project] +name = "QRKot" +version = "0.0.1" +authors = [ + {name = "mign0n", email = "mign0n.git@gmail.com"}, ] +description = "" +readme = "README.md" +requires-python = "==3.9.10" +dependencies = [ + "aiogoogle==4.2.0", + "aiohttp==3.7.4.post0", + "aiosqlite==0.17.0", + "alembic==1.7.7", + "fastapi==0.78.0", + "fastapi-users[sqlalchemy]", + "pydantic[email]", + "requests", + "uvicorn[standard]==0.17.6" +] + +[project.optional-dependencies] +dev = [ + "black", + "flake8==4.0.1", + "isort", + "mixer", + "pluggy==1.0.0", + "pytest==7.1.3", + "pytest-asyncio", + "pytest-freezegun", + "pytest-lazy-fixture", + "pytest-pythonpath" +] + +[tool.black] +extend-exclude = """ +( + alembic + | tests +) +""" +line-length = 79 +skip-string-normalization = "true" +target-version = ["py39"] + +[tool.isort] +atomic = "true" +extend_skip = ["tests", "alembic"] +py_version = 39 +profile = "black" +line_length = 79 +src_paths = "app" + +[tool.setuptools] +packages = ["app", "alembic"] diff --git a/requirements.txt b/requirements.txt index cf49783..76751de 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,83 +1,210 @@ # -# These requirements were autogenerated by pipenv -# To regenerate from the project's Pipfile, run: +# This file is autogenerated by pip-compile with Python 3.9 +# by the following command: # -# pipenv lock --requirements +# pip-compile --extra=dev --output-file=requirements.txt pyproject.toml # - --i https://pypi.org/simple -aiofiles==0.8.0; python_version >= '3.6' and python_version < '4' +aiofiles==23.2.1 + # via aiogoogle aiogoogle==4.2.0 -aiohttp==3.8.1; python_version >= '3.6' -aiosignal==1.2.0; python_version >= '3.6' + # via QRKot (pyproject.toml) +aiohttp==3.7.4.post0 + # via + # QRKot (pyproject.toml) + # aiogoogle aiosqlite==0.17.0 + # via QRKot (pyproject.toml) alembic==1.7.7 -anyio==3.6.1 -asgiref==3.5.2 -async-timeout==4.0.2; python_version >= '3.6' -attrs==21.4.0 -bcrypt==3.2.2 -cachetools==5.2.0; python_version ~= '3.7' -certifi==2022.5.18.1 -cffi==1.15.0 -charset-normalizer==2.0.12 -click==8.1.3 -cryptography==37.0.2 -dnspython==2.2.1 -email-validator==1.2.1 + # via QRKot (pyproject.toml) +anyio==3.7.1 + # via + # starlette + # watchgod +asgiref==3.7.2 + # via uvicorn +async-timeout==3.0.1 + # via + # aiogoogle + # aiohttp +attrs==23.2.0 + # via + # aiohttp + # pytest +bcrypt==4.1.2 + # via passlib +black==24.2.0 + # via QRKot (pyproject.toml) +cachetools==5.3.3 + # via google-auth +certifi==2024.2.2 + # via requests +cffi==1.16.0 + # via cryptography +chardet==4.0.0 + # via aiohttp +charset-normalizer==3.3.2 + # via requests +click==8.1.7 + # via + # black + # uvicorn +cryptography==42.0.5 + # via pyjwt +dnspython==2.6.1 + # via email-validator +email-validator==2.1.1 + # via + # fastapi-users + # pydantic +exceptiongroup==1.2.0 + # via anyio faker==12.0.1 -fastapi-users-db-sqlalchemy==4.0.3 -fastapi-users[sqlalchemy]==10.0.4 + # via mixer fastapi==0.78.0 + # via + # QRKot (pyproject.toml) + # fastapi-users +fastapi-users[sqlalchemy]==12.1.3 + # via + # QRKot (pyproject.toml) + # fastapi-users-db-sqlalchemy +fastapi-users-db-sqlalchemy==6.0.1 + # via fastapi-users flake8==4.0.1 -freezegun==1.2.1 -frozenlist==1.3.0; python_version >= '3.7' -google-auth==2.8.0 -greenlet==1.1.2 -h11==0.13.0 -httptools==0.4.0 -idna==3.3 -iniconfig==1.1.1 -lock==2018.3.25.2110 -makefun==1.13.1 -mako==1.2.0 -markupsafe==2.1.1 + # via QRKot (pyproject.toml) +freezegun==1.4.0 + # via pytest-freezegun +google-auth==2.28.1 + # via aiogoogle +greenlet==3.0.3 + # via sqlalchemy +h11==0.14.0 + # via uvicorn +httptools==0.6.1 + # via uvicorn +idna==3.6 + # via + # anyio + # email-validator + # requests + # yarl +iniconfig==2.0.0 + # via pytest +isort==5.13.2 + # via QRKot (pyproject.toml) +makefun==1.15.2 + # via fastapi-users +mako==1.3.2 + # via alembic +markupsafe==2.1.5 + # via mako mccabe==0.6.1 + # via flake8 mixer==7.2.2 -multidict==6.0.2; python_version >= '3.7' -packaging==21.3; python_version >= '3.6' + # via QRKot (pyproject.toml) +multidict==6.0.5 + # via + # aiohttp + # yarl +mypy-extensions==1.0.0 + # via black +packaging==23.2 + # via + # black + # pytest passlib[bcrypt]==1.7.4 + # via fastapi-users +pathspec==0.12.1 + # via black +platformdirs==4.2.0 + # via black pluggy==1.0.0 + # via + # QRKot (pyproject.toml) + # pytest py==1.11.0 -pyasn1-modules==0.2.8 -pyasn1==0.4.8 + # via pytest +pyasn1==0.5.1 + # via + # pyasn1-modules + # rsa +pyasn1-modules==0.3.0 + # via google-auth pycodestyle==2.8.0 + # via flake8 pycparser==2.21 -pydantic==1.9.1 + # via cffi +pydantic[email]==1.10.14 + # via + # QRKot (pyproject.toml) + # fastapi pyflakes==2.4.0 -pyjwt[crypto]==2.3.0 -pyparsing==3.0.9 -pytest-asyncio==0.23.4 + # via flake8 +pyjwt[crypto]==2.8.0 + # via fastapi-users +pytest==7.1.3 + # via + # QRKot (pyproject.toml) + # pytest-asyncio + # pytest-freezegun + # pytest-lazy-fixture + # pytest-pythonpath +pytest-asyncio==0.23.5 + # via QRKot (pyproject.toml) pytest-freezegun==0.4.2 + # via QRKot (pyproject.toml) pytest-lazy-fixture==0.6.3 + # via QRKot (pyproject.toml) pytest-pythonpath==0.7.3 -pytest==7.1.3 + # via QRKot (pyproject.toml) python-dateutil==2.8.2 -python-dotenv==0.20.0 -python-multipart==0.0.5 -pyyaml==6.0 -requests==2.27.1 -rsa==4.8; python_version >= '3.6' + # via + # faker + # freezegun +python-dotenv==1.0.1 + # via uvicorn +python-multipart==0.0.7 + # via fastapi-users +pyyaml==6.0.1 + # via uvicorn +requests==2.31.0 + # via QRKot (pyproject.toml) +rsa==4.9 + # via google-auth six==1.16.0 -sniffio==1.2.0 -sqlalchemy==1.4.36 + # via python-dateutil +sniffio==1.3.1 + # via anyio +sqlalchemy[asyncio]==2.0.27 + # via + # alembic + # fastapi-users-db-sqlalchemy starlette==0.19.1 -toml==0.10.2 + # via fastapi +tomli==2.0.1 + # via + # black + # pytest tonyg-rfc3339==0.1 -typing-extensions==4.2.0 -urllib3==1.26.9 + # via aiogoogle +typing-extensions==4.10.0 + # via + # aiohttp + # aiosqlite + # asgiref + # black + # pydantic + # sqlalchemy + # starlette +urllib3==2.2.1 + # via requests uvicorn[standard]==0.17.6 -uvloop==0.16.0 + # via QRKot (pyproject.toml) +uvloop==0.19.0 + # via uvicorn watchgod==0.8.2 -websockets==10.3 -yarl==1.7.2; python_version >= '3.6' + # via uvicorn +websockets==12.0 + # via uvicorn +yarl==1.9.4 + # via aiohttp From 28c32c05a021824cc1542e38320c53d02f5cf243 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 27 Feb 2024 16:16:19 +0000 Subject: [PATCH 3/3] Bump aiohttp from 3.8.1 to 3.9.2 Bumps [aiohttp](https://github.com/aio-libs/aiohttp) from 3.8.1 to 3.9.2. - [Release notes](https://github.com/aio-libs/aiohttp/releases) - [Changelog](https://github.com/aio-libs/aiohttp/blob/master/CHANGES.rst) - [Commits](https://github.com/aio-libs/aiohttp/compare/v3.8.1...v3.9.2) --- updated-dependencies: - dependency-name: aiohttp dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- pyproject.toml | 2 +- requirements.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index fa98d0a..69c3fce 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,7 +8,7 @@ readme = "README.md" requires-python = "==3.9.10" dependencies = [ "aiogoogle==4.2.0", - "aiohttp==3.7.4.post0", + "aiohttp==3.9.2", "aiosqlite==0.17.0", "alembic==1.7.7", "fastapi==0.78.0", diff --git a/requirements.txt b/requirements.txt index 76751de..dde2369 100644 --- a/requirements.txt +++ b/requirements.txt @@ -8,7 +8,7 @@ aiofiles==23.2.1 # via aiogoogle aiogoogle==4.2.0 # via QRKot (pyproject.toml) -aiohttp==3.7.4.post0 +aiohttp==3.9.2 # via # QRKot (pyproject.toml) # aiogoogle