From c8002a6bbd282dc6e5be15fc4d9cccae234b03b7 Mon Sep 17 00:00:00 2001 From: Hunia Fatima Date: Fri, 23 Aug 2024 16:36:47 +0500 Subject: [PATCH 1/4] chore: drop support for python 3.8 --- .github/workflows/ci.yml | 2 +- requirements/base.txt | 42 +++++----- requirements/ci.txt | 16 ++-- requirements/common_constraints.txt | 8 ++ requirements/dev.txt | 123 ++++++++++------------------ requirements/doc.txt | 100 ++++++++++------------ requirements/pip-tools.txt | 17 +--- requirements/pip.txt | 8 +- requirements/quality.txt | 91 ++++++++------------ requirements/test.txt | 57 ++++++------- 10 files changed, 187 insertions(+), 277 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7be86ba1..8a73a006 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,7 +14,7 @@ jobs: strategy: matrix: os: [ubuntu-20.04] - python-version: ['3.8', '3.12'] + python-version: ['3.12'] toxenv: [python, quality] steps: diff --git a/requirements/base.txt b/requirements/base.txt index bbd10238..11beba24 100644 --- a/requirements/base.txt +++ b/requirements/base.txt @@ -1,29 +1,27 @@ # -# This file is autogenerated by pip-compile with Python 3.8 +# This file is autogenerated by pip-compile with Python 3.11 # by the following command: # # make upgrade # -aiohttp==3.9.3 +aiohappyeyeballs==2.4.0 + # via aiohttp +aiohttp==3.10.5 # via # github-py # pytest-aiohttp aiosignal==1.3.1 # via aiohttp -async-timeout==4.0.3 - # via aiohttp -attrs==23.2.0 +attrs==24.2.0 # via aiohttp -cachetools==5.3.3 +cachetools==5.5.0 # via google-auth -certifi==2024.2.2 +certifi==2024.7.4 # via requests charset-normalizer==3.3.2 # via requests dockerfile==3.3.1 # via -r requirements/base.in -exceptiongroup==1.2.0 - # via pytest frozenlist==1.4.1 # via # aiohttp @@ -32,19 +30,19 @@ gitdb==4.0.11 # via gitpython github-py @ git+https://github.com/ShineyDev/github.py.git@8e3514010eb35a91e012f2935f48138b3c35cef6 # via -r requirements/github.in -gitpython==3.1.42 +gitpython==3.1.43 # via pytest-repo-health -google-auth==2.28.1 +google-auth==2.34.0 # via # google-auth-oauthlib # gspread -google-auth-oauthlib==1.2.0 +google-auth-oauthlib==1.2.1 # via gspread gspread==5.11.3 # via # -c requirements/constraints.txt # -r requirements/base.in -idna==3.6 +idna==3.7 # via # requests # yarl @@ -60,13 +58,13 @@ packaging==21.3 # via # -c requirements/constraints.txt # pytest -pluggy==1.4.0 +pluggy==1.5.0 # via pytest -pyasn1==0.5.1 +pyasn1==0.6.0 # via # pyasn1-modules # rsa -pyasn1-modules==0.3.0 +pyasn1-modules==0.4.0 # via google-auth pyparsing==3.1.2 # via packaging @@ -78,19 +76,19 @@ pytest==8.0.2 # pytest-repo-health pytest-aiohttp==1.0.5 # via pytest-repo-health -pytest-asyncio==0.23.5 +pytest-asyncio==0.23.8 # via # -r requirements/base.in # pytest-aiohttp pytest-repo-health==3.0.2 # via -r requirements/base.in -pyyaml==6.0.1 +pyyaml==6.0.2 # via # -r requirements/base.in # pytest-repo-health -requests==2.31.0 +requests==2.32.3 # via requests-oauthlib -requests-oauthlib==1.3.1 +requests-oauthlib==2.0.0 # via google-auth-oauthlib rsa==4.9 # via google-auth @@ -98,9 +96,7 @@ smmap==5.0.1 # via gitdb toml==0.10.2 # via -r requirements/base.in -tomli==2.0.1 - # via pytest -urllib3==2.2.1 +urllib3==2.2.2 # via requests yarl==1.9.4 # via aiohttp diff --git a/requirements/ci.txt b/requirements/ci.txt index 1535f01c..190a421d 100644 --- a/requirements/ci.txt +++ b/requirements/ci.txt @@ -1,10 +1,10 @@ # -# This file is autogenerated by pip-compile with Python 3.8 +# This file is autogenerated by pip-compile with Python 3.11 # by the following command: # # make upgrade # -cachetools==5.3.3 +cachetools==5.5.0 # via tox chardet==5.2.0 # via tox @@ -12,7 +12,7 @@ colorama==0.4.6 # via tox distlib==0.3.8 # via virtualenv -filelock==3.13.1 +filelock==3.15.4 # via # tox # virtualenv @@ -21,21 +21,17 @@ packaging==21.3 # -c requirements/constraints.txt # pyproject-api # tox -platformdirs==4.2.0 +platformdirs==4.2.2 # via # tox # virtualenv -pluggy==1.4.0 +pluggy==1.5.0 # via tox pyparsing==3.1.2 # via packaging pyproject-api==1.5.0 # via tox -tomli==2.0.1 - # via - # pyproject-api - # tox tox==4.0.0 # via -r requirements/ci.in -virtualenv==20.25.1 +virtualenv==20.26.3 # via tox diff --git a/requirements/common_constraints.txt b/requirements/common_constraints.txt index 0ab0ecd2..9a458f05 100644 --- a/requirements/common_constraints.txt +++ b/requirements/common_constraints.txt @@ -18,7 +18,15 @@ Django<5.0 # elasticsearch>=7.14.0 includes breaking changes in it which caused issues in discovery upgrade process. # elastic search changelog: https://www.elastic.co/guide/en/enterprise-search/master/release-notes-7.14.0.html +# See https://github.com/openedx/edx-platform/issues/35126 for more info elasticsearch<7.14.0 # django-simple-history>3.0.0 adds indexing and causes a lot of migrations to be affected django-simple-history==3.0.0 + +# Cause: https://github.com/openedx/event-tracking/pull/290 +# event-tracking 2.4.1 upgrades to pymongo 4.4.0 which is not supported on edx-platform. +# We will pin event-tracking to do not break existing installations +# This can be unpinned once https://github.com/openedx/edx-platform/issues/34586 +# has been resolved and edx-platform is running with pymongo>=4.4.0 +event-tracking<2.4.1 diff --git a/requirements/dev.txt b/requirements/dev.txt index 3353eee3..fd6a377e 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -1,10 +1,14 @@ # -# This file is autogenerated by pip-compile with Python 3.8 +# This file is autogenerated by pip-compile with Python 3.11 # by the following command: # # make upgrade # -aiohttp==3.9.3 +aiohappyeyeballs==2.4.0 + # via + # -r requirements/quality.txt + # aiohttp +aiohttp==3.10.5 # via # -r requirements/quality.txt # github-py @@ -13,39 +17,30 @@ aiosignal==1.3.1 # via # -r requirements/quality.txt # aiohttp -asgiref==3.7.2 +asgiref==3.8.1 # via # -r requirements/quality.txt # django -astroid==3.1.0 +astroid==3.2.4 # via # -r requirements/quality.txt # pylint # pylint-celery -async-timeout==4.0.3 - # via - # -r requirements/quality.txt - # aiohttp -attrs==23.2.0 +attrs==24.2.0 # via # -r requirements/quality.txt # aiohttp -backports-zoneinfo==0.2.1 ; python_version < "3.9" - # via - # -c requirements/constraints.txt - # -r requirements/quality.txt - # django -build==1.1.1 +build==1.2.1 # via # -r requirements/pip-tools.txt # pip-tools -cachetools==5.3.3 +cachetools==5.5.0 # via # -r requirements/ci.txt # -r requirements/quality.txt # google-auth # tox -certifi==2024.2.2 +certifi==2024.7.4 # via # -r requirements/quality.txt # requests @@ -70,7 +65,7 @@ click-log==0.4.0 # via # -r requirements/quality.txt # edx-lint -code-annotations==1.6.0 +code-annotations==1.8.0 # via # -r requirements/quality.txt # edx-lint @@ -78,11 +73,11 @@ colorama==0.4.6 # via # -r requirements/ci.txt # tox -coverage[toml]==7.4.3 +coverage[toml]==7.6.1 # via # -r requirements/quality.txt # pytest-cov -diff-cover==8.0.3 +diff-cover==9.1.1 # via -r requirements/dev.in dill==0.3.8 # via @@ -92,19 +87,15 @@ distlib==0.3.8 # via # -r requirements/ci.txt # virtualenv -django==4.2.11 +django==4.2.15 # via # -c requirements/common_constraints.txt # -r requirements/quality.txt dockerfile==3.3.1 # via -r requirements/quality.txt -edx-lint==5.3.6 +edx-lint==5.3.7 # via -r requirements/quality.txt -exceptiongroup==1.2.0 - # via - # -r requirements/quality.txt - # pytest -filelock==3.13.1 +filelock==3.15.4 # via # -r requirements/ci.txt # tox @@ -120,16 +111,16 @@ gitdb==4.0.11 # gitpython github-py @ git+https://github.com/ShineyDev/github.py.git@8e3514010eb35a91e012f2935f48138b3c35cef6 # via -r requirements/quality.txt -gitpython==3.1.42 +gitpython==3.1.43 # via # -r requirements/quality.txt # pytest-repo-health -google-auth==2.28.1 +google-auth==2.34.0 # via # -r requirements/quality.txt # google-auth-oauthlib # gspread -google-auth-oauthlib==1.2.0 +google-auth-oauthlib==1.2.1 # via # -r requirements/quality.txt # gspread @@ -137,15 +128,11 @@ gspread==5.11.3 # via # -c requirements/constraints.txt # -r requirements/quality.txt -idna==3.6 +idna==3.7 # via # -r requirements/quality.txt # requests # yarl -importlib-metadata==7.0.2 - # via - # -r requirements/pip-tools.txt - # build iniconfig==2.0.0 # via # -r requirements/quality.txt @@ -154,7 +141,7 @@ isort==5.13.2 # via # -r requirements/quality.txt # pylint -jinja2==3.1.3 +jinja2==3.1.4 # via # -r requirements/quality.txt # code-annotations @@ -196,38 +183,38 @@ pbr==6.0.0 # stevedore pip-tools==7.4.1 # via -r requirements/pip-tools.txt -platformdirs==4.2.0 +platformdirs==4.2.2 # via # -r requirements/ci.txt # -r requirements/quality.txt # pylint # tox # virtualenv -pluggy==1.4.0 +pluggy==1.5.0 # via # -r requirements/ci.txt # -r requirements/quality.txt # diff-cover # pytest # tox -pyasn1==0.5.1 +pyasn1==0.6.0 # via # -r requirements/quality.txt # pyasn1-modules # rsa -pyasn1-modules==0.3.0 +pyasn1-modules==0.4.0 # via # -r requirements/quality.txt # google-auth -pycodestyle==2.11.1 +pycodestyle==2.12.1 # via -r requirements/quality.txt pydocstyle==6.3.0 # via -r requirements/quality.txt -pygments==2.17.2 +pygments==2.18.0 # via # diff-cover # rich -pylint==3.1.0 +pylint==3.2.6 # via # -r requirements/quality.txt # edx-lint @@ -257,7 +244,7 @@ pyproject-api==1.5.0 # via # -r requirements/ci.txt # tox -pyproject-hooks==1.0.0 +pyproject-hooks==1.1.0 # via # -r requirements/pip-tools.txt # build @@ -274,11 +261,11 @@ pytest-aiohttp==1.0.5 # via # -r requirements/quality.txt # pytest-repo-health -pytest-asyncio==0.23.5 +pytest-asyncio==0.23.8 # via # -r requirements/quality.txt # pytest-aiohttp -pytest-cov==4.1.0 +pytest-cov==5.0.0 # via -r requirements/quality.txt pytest-repo-health==3.0.2 # via -r requirements/quality.txt @@ -286,22 +273,22 @@ python-slugify==8.0.4 # via # -r requirements/quality.txt # code-annotations -pyyaml==6.0.1 +pyyaml==6.0.2 # via # -r requirements/quality.txt # code-annotations # pytest-repo-health # responses -requests==2.31.0 +requests==2.32.3 # via # -r requirements/quality.txt # requests-oauthlib # responses -requests-oauthlib==1.3.1 +requests-oauthlib==2.0.0 # via # -r requirements/quality.txt # google-auth-oauthlib -responses==0.25.0 +responses==0.25.3 # via -r requirements/quality.txt rich==13.7.1 # via -r requirements/dev.in @@ -321,11 +308,11 @@ snowballstemmer==2.2.0 # via # -r requirements/quality.txt # pydocstyle -sqlparse==0.4.4 +sqlparse==0.5.1 # via # -r requirements/quality.txt # django -stevedore==5.2.0 +stevedore==5.3.0 # via # -r requirements/quality.txt # code-annotations @@ -335,42 +322,22 @@ text-unidecode==1.3 # python-slugify toml==0.10.2 # via -r requirements/quality.txt -tomli==2.0.1 - # via - # -r requirements/ci.txt - # -r requirements/pip-tools.txt - # -r requirements/quality.txt - # build - # coverage - # pip-tools - # pylint - # pyproject-api - # pyproject-hooks - # pytest - # tox -tomlkit==0.12.4 +tomlkit==0.13.2 # via # -r requirements/quality.txt # pylint tox==4.0.0 # via -r requirements/ci.txt -typing-extensions==4.10.0 - # via - # -r requirements/quality.txt - # asgiref - # astroid - # pylint - # rich -urllib3==2.2.1 +urllib3==2.2.2 # via # -r requirements/quality.txt # requests # responses -virtualenv==20.25.1 +virtualenv==20.26.3 # via # -r requirements/ci.txt # tox -wheel==0.42.0 +wheel==0.44.0 # via # -r requirements/pip-tools.txt # pip-tools @@ -378,10 +345,6 @@ yarl==1.9.4 # via # -r requirements/quality.txt # aiohttp -zipp==3.17.0 - # via - # -r requirements/pip-tools.txt - # importlib-metadata # The following packages are considered to be unsafe in a requirements file: # pip diff --git a/requirements/doc.txt b/requirements/doc.txt index 8d0fac13..ab9d6158 100644 --- a/requirements/doc.txt +++ b/requirements/doc.txt @@ -1,12 +1,16 @@ # -# This file is autogenerated by pip-compile with Python 3.8 +# This file is autogenerated by pip-compile with Python 3.11 # by the following command: # # make upgrade # -accessible-pygments==0.0.4 +accessible-pygments==0.0.5 # via pydata-sphinx-theme -aiohttp==3.9.3 +aiohappyeyeballs==2.4.0 + # via + # -r requirements/test.txt + # aiohttp +aiohttp==3.10.5 # via # -r requirements/test.txt # github-py @@ -15,27 +19,23 @@ aiosignal==1.3.1 # via # -r requirements/test.txt # aiohttp -alabaster==0.7.13 +alabaster==0.7.16 # via sphinx -async-timeout==4.0.3 +attrs==24.2.0 # via # -r requirements/test.txt # aiohttp -attrs==23.2.0 - # via - # -r requirements/test.txt - # aiohttp -babel==2.14.0 +babel==2.16.0 # via # pydata-sphinx-theme # sphinx beautifulsoup4==4.12.3 # via pydata-sphinx-theme -cachetools==5.3.3 +cachetools==5.5.0 # via # -r requirements/test.txt # google-auth -certifi==2024.2.2 +certifi==2024.7.4 # via # -r requirements/test.txt # requests @@ -43,7 +43,7 @@ charset-normalizer==3.3.2 # via # -r requirements/test.txt # requests -coverage[toml]==7.4.3 +coverage[toml]==7.6.1 # via # -r requirements/test.txt # pytest-cov @@ -51,17 +51,13 @@ doc8==1.1.1 # via -r requirements/doc.in dockerfile==3.3.1 # via -r requirements/test.txt -docutils==0.19 +docutils==0.20.1 # via # doc8 # pydata-sphinx-theme # readme-renderer # restructuredtext-lint # sphinx -exceptiongroup==1.2.0 - # via - # -r requirements/test.txt - # pytest frozenlist==1.4.1 # via # -r requirements/test.txt @@ -73,16 +69,16 @@ gitdb==4.0.11 # gitpython github-py @ git+https://github.com/ShineyDev/github.py.git@8e3514010eb35a91e012f2935f48138b3c35cef6 # via -r requirements/test.txt -gitpython==3.1.42 +gitpython==3.1.43 # via # -r requirements/test.txt # pytest-repo-health -google-auth==2.28.1 +google-auth==2.34.0 # via # -r requirements/test.txt # google-auth-oauthlib # gspread -google-auth-oauthlib==1.2.0 +google-auth-oauthlib==1.2.1 # via # -r requirements/test.txt # gspread @@ -90,20 +86,18 @@ gspread==5.11.3 # via # -c requirements/constraints.txt # -r requirements/test.txt -idna==3.6 +idna==3.7 # via # -r requirements/test.txt # requests # yarl imagesize==1.4.1 # via sphinx -importlib-metadata==7.0.2 - # via sphinx iniconfig==2.0.0 # via # -r requirements/test.txt # pytest -jinja2==3.1.3 +jinja2==3.1.4 # via sphinx markupsafe==2.1.5 # via jinja2 @@ -112,7 +106,7 @@ multidict==6.0.5 # -r requirements/test.txt # aiohttp # yarl -nh3==0.2.15 +nh3==0.2.18 # via readme-renderer oauthlib==3.2.2 # via @@ -127,22 +121,22 @@ packaging==21.3 # sphinx pbr==6.0.0 # via stevedore -pluggy==1.4.0 +pluggy==1.5.0 # via # -r requirements/test.txt # pytest -pyasn1==0.5.1 +pyasn1==0.6.0 # via # -r requirements/test.txt # pyasn1-modules # rsa -pyasn1-modules==0.3.0 +pyasn1-modules==0.4.0 # via # -r requirements/test.txt # google-auth -pydata-sphinx-theme==0.14.4 +pydata-sphinx-theme==0.15.4 # via sphinx-book-theme -pygments==2.17.2 +pygments==2.18.0 # via # accessible-pygments # doc8 @@ -165,34 +159,32 @@ pytest-aiohttp==1.0.5 # via # -r requirements/test.txt # pytest-repo-health -pytest-asyncio==0.23.5 +pytest-asyncio==0.23.8 # via # -r requirements/test.txt # pytest-aiohttp -pytest-cov==4.1.0 +pytest-cov==5.0.0 # via -r requirements/test.txt pytest-repo-health==3.0.2 # via -r requirements/test.txt -pytz==2024.1 - # via babel -pyyaml==6.0.1 +pyyaml==6.0.2 # via # -r requirements/test.txt # pytest-repo-health # responses readme-renderer==43.0 # via -r requirements/doc.in -requests==2.31.0 +requests==2.32.3 # via # -r requirements/test.txt # requests-oauthlib # responses # sphinx -requests-oauthlib==1.3.1 +requests-oauthlib==2.0.0 # via # -r requirements/test.txt # google-auth-oauthlib -responses==0.25.0 +responses==0.25.3 # via -r requirements/test.txt restructuredtext-lint==1.4.0 # via doc8 @@ -206,40 +198,34 @@ smmap==5.0.1 # gitdb snowballstemmer==2.2.0 # via sphinx -soupsieve==2.5 +soupsieve==2.6 # via beautifulsoup4 -sphinx==6.2.1 +sphinx==7.3.7 # via # -r requirements/doc.in # pydata-sphinx-theme # sphinx-book-theme -sphinx-book-theme==1.0.1 +sphinx-book-theme==1.1.3 # via -r requirements/doc.in -sphinxcontrib-applehelp==1.0.4 +sphinxcontrib-applehelp==2.0.0 # via sphinx -sphinxcontrib-devhelp==1.0.2 +sphinxcontrib-devhelp==2.0.0 # via sphinx -sphinxcontrib-htmlhelp==2.0.1 +sphinxcontrib-htmlhelp==2.1.0 # via sphinx sphinxcontrib-jsmath==1.0.1 # via sphinx -sphinxcontrib-qthelp==1.0.3 +sphinxcontrib-qthelp==2.0.0 # via sphinx -sphinxcontrib-serializinghtml==1.1.5 +sphinxcontrib-serializinghtml==2.0.0 # via sphinx -stevedore==5.2.0 +stevedore==5.3.0 # via doc8 toml==0.10.2 # via -r requirements/test.txt -tomli==2.0.1 - # via - # -r requirements/test.txt - # coverage - # doc8 - # pytest -typing-extensions==4.10.0 +typing-extensions==4.12.2 # via pydata-sphinx-theme -urllib3==2.2.1 +urllib3==2.2.2 # via # -r requirements/test.txt # requests @@ -248,5 +234,3 @@ yarl==1.9.4 # via # -r requirements/test.txt # aiohttp -zipp==3.17.0 - # via importlib-metadata diff --git a/requirements/pip-tools.txt b/requirements/pip-tools.txt index 1ae42163..d63f9fc9 100644 --- a/requirements/pip-tools.txt +++ b/requirements/pip-tools.txt @@ -1,15 +1,13 @@ # -# This file is autogenerated by pip-compile with Python 3.8 +# This file is autogenerated by pip-compile with Python 3.11 # by the following command: # # make upgrade # -build==1.1.1 +build==1.2.1 # via pip-tools click==8.1.7 # via pip-tools -importlib-metadata==7.0.2 - # via build packaging==21.3 # via # -c requirements/constraints.txt @@ -18,19 +16,12 @@ pip-tools==7.4.1 # via -r requirements/pip-tools.in pyparsing==3.1.2 # via packaging -pyproject-hooks==1.0.0 +pyproject-hooks==1.1.0 # via # build # pip-tools -tomli==2.0.1 - # via - # build - # pip-tools - # pyproject-hooks -wheel==0.42.0 +wheel==0.44.0 # via pip-tools -zipp==3.17.0 - # via importlib-metadata # The following packages are considered to be unsafe in a requirements file: # pip diff --git a/requirements/pip.txt b/requirements/pip.txt index 66656035..f0fca188 100644 --- a/requirements/pip.txt +++ b/requirements/pip.txt @@ -1,14 +1,14 @@ # -# This file is autogenerated by pip-compile with Python 3.8 +# This file is autogenerated by pip-compile with Python 3.11 # by the following command: # # make upgrade # -wheel==0.42.0 +wheel==0.44.0 # via -r requirements/pip.in # The following packages are considered to be unsafe in a requirements file: -pip==24.0 +pip==24.2 # via -r requirements/pip.in -setuptools==69.1.1 +setuptools==73.0.1 # via -r requirements/pip.in diff --git a/requirements/quality.txt b/requirements/quality.txt index f7ce7800..72dce640 100644 --- a/requirements/quality.txt +++ b/requirements/quality.txt @@ -1,10 +1,14 @@ # -# This file is autogenerated by pip-compile with Python 3.8 +# This file is autogenerated by pip-compile with Python 3.11 # by the following command: # # make upgrade # -aiohttp==3.9.3 +aiohappyeyeballs==2.4.0 + # via + # -r requirements/test.txt + # aiohttp +aiohttp==3.10.5 # via # -r requirements/test.txt # github-py @@ -13,29 +17,21 @@ aiosignal==1.3.1 # via # -r requirements/test.txt # aiohttp -asgiref==3.7.2 +asgiref==3.8.1 # via django -astroid==3.1.0 +astroid==3.2.4 # via # pylint # pylint-celery -async-timeout==4.0.3 +attrs==24.2.0 # via # -r requirements/test.txt # aiohttp -attrs==23.2.0 - # via - # -r requirements/test.txt - # aiohttp -backports-zoneinfo==0.2.1 ; python_version < "3.9" - # via - # -c requirements/constraints.txt - # django -cachetools==5.3.3 +cachetools==5.5.0 # via # -r requirements/test.txt # google-auth -certifi==2024.2.2 +certifi==2024.7.4 # via # -r requirements/test.txt # requests @@ -50,26 +46,22 @@ click==8.1.7 # edx-lint click-log==0.4.0 # via edx-lint -code-annotations==1.6.0 +code-annotations==1.8.0 # via edx-lint -coverage[toml]==7.4.3 +coverage[toml]==7.6.1 # via # -r requirements/test.txt # pytest-cov dill==0.3.8 # via pylint -django==4.2.11 +django==4.2.15 # via # -c requirements/common_constraints.txt # -r requirements/quality.in dockerfile==3.3.1 # via -r requirements/test.txt -edx-lint==5.3.6 +edx-lint==5.3.7 # via -r requirements/quality.in -exceptiongroup==1.2.0 - # via - # -r requirements/test.txt - # pytest frozenlist==1.4.1 # via # -r requirements/test.txt @@ -81,16 +73,16 @@ gitdb==4.0.11 # gitpython github-py @ git+https://github.com/ShineyDev/github.py.git@8e3514010eb35a91e012f2935f48138b3c35cef6 # via -r requirements/test.txt -gitpython==3.1.42 +gitpython==3.1.43 # via # -r requirements/test.txt # pytest-repo-health -google-auth==2.28.1 +google-auth==2.34.0 # via # -r requirements/test.txt # google-auth-oauthlib # gspread -google-auth-oauthlib==1.2.0 +google-auth-oauthlib==1.2.1 # via # -r requirements/test.txt # gspread @@ -98,7 +90,7 @@ gspread==5.11.3 # via # -c requirements/constraints.txt # -r requirements/test.txt -idna==3.6 +idna==3.7 # via # -r requirements/test.txt # requests @@ -111,7 +103,7 @@ isort==5.13.2 # via # -r requirements/quality.in # pylint -jinja2==3.1.3 +jinja2==3.1.4 # via code-annotations markupsafe==2.1.5 # via jinja2 @@ -133,26 +125,26 @@ packaging==21.3 # pytest pbr==6.0.0 # via stevedore -platformdirs==4.2.0 +platformdirs==4.2.2 # via pylint -pluggy==1.4.0 +pluggy==1.5.0 # via # -r requirements/test.txt # pytest -pyasn1==0.5.1 +pyasn1==0.6.0 # via # -r requirements/test.txt # pyasn1-modules # rsa -pyasn1-modules==0.3.0 +pyasn1-modules==0.4.0 # via # -r requirements/test.txt # google-auth -pycodestyle==2.11.1 +pycodestyle==2.12.1 # via -r requirements/quality.in pydocstyle==6.3.0 # via -r requirements/quality.in -pylint==3.1.0 +pylint==3.2.6 # via # edx-lint # pylint-celery @@ -182,32 +174,32 @@ pytest-aiohttp==1.0.5 # via # -r requirements/test.txt # pytest-repo-health -pytest-asyncio==0.23.5 +pytest-asyncio==0.23.8 # via # -r requirements/test.txt # pytest-aiohttp -pytest-cov==4.1.0 +pytest-cov==5.0.0 # via -r requirements/test.txt pytest-repo-health==3.0.2 # via -r requirements/test.txt python-slugify==8.0.4 # via code-annotations -pyyaml==6.0.1 +pyyaml==6.0.2 # via # -r requirements/test.txt # code-annotations # pytest-repo-health # responses -requests==2.31.0 +requests==2.32.3 # via # -r requirements/test.txt # requests-oauthlib # responses -requests-oauthlib==1.3.1 +requests-oauthlib==2.0.0 # via # -r requirements/test.txt # google-auth-oauthlib -responses==0.25.0 +responses==0.25.3 # via -r requirements/test.txt rsa==4.9 # via @@ -221,28 +213,17 @@ smmap==5.0.1 # gitdb snowballstemmer==2.2.0 # via pydocstyle -sqlparse==0.4.4 +sqlparse==0.5.1 # via django -stevedore==5.2.0 +stevedore==5.3.0 # via code-annotations text-unidecode==1.3 # via python-slugify toml==0.10.2 # via -r requirements/test.txt -tomli==2.0.1 - # via - # -r requirements/test.txt - # coverage - # pylint - # pytest -tomlkit==0.12.4 +tomlkit==0.13.2 # via pylint -typing-extensions==4.10.0 - # via - # asgiref - # astroid - # pylint -urllib3==2.2.1 +urllib3==2.2.2 # via # -r requirements/test.txt # requests diff --git a/requirements/test.txt b/requirements/test.txt index 5d436176..7716100c 100644 --- a/requirements/test.txt +++ b/requirements/test.txt @@ -1,10 +1,14 @@ # -# This file is autogenerated by pip-compile with Python 3.8 +# This file is autogenerated by pip-compile with Python 3.11 # by the following command: # # make upgrade # -aiohttp==3.9.3 +aiohappyeyeballs==2.4.0 + # via + # -r requirements/base.txt + # aiohttp +aiohttp==3.10.5 # via # -r requirements/base.txt # github-py @@ -13,19 +17,15 @@ aiosignal==1.3.1 # via # -r requirements/base.txt # aiohttp -async-timeout==4.0.3 - # via - # -r requirements/base.txt - # aiohttp -attrs==23.2.0 +attrs==24.2.0 # via # -r requirements/base.txt # aiohttp -cachetools==5.3.3 +cachetools==5.5.0 # via # -r requirements/base.txt # google-auth -certifi==2024.2.2 +certifi==2024.7.4 # via # -r requirements/base.txt # requests @@ -33,14 +33,10 @@ charset-normalizer==3.3.2 # via # -r requirements/base.txt # requests -coverage[toml]==7.4.3 +coverage[toml]==7.6.1 # via pytest-cov dockerfile==3.3.1 # via -r requirements/base.txt -exceptiongroup==1.2.0 - # via - # -r requirements/base.txt - # pytest frozenlist==1.4.1 # via # -r requirements/base.txt @@ -52,16 +48,16 @@ gitdb==4.0.11 # gitpython github-py @ git+https://github.com/ShineyDev/github.py.git@8e3514010eb35a91e012f2935f48138b3c35cef6 # via -r requirements/base.txt -gitpython==3.1.42 +gitpython==3.1.43 # via # -r requirements/base.txt # pytest-repo-health -google-auth==2.28.1 +google-auth==2.34.0 # via # -r requirements/base.txt # google-auth-oauthlib # gspread -google-auth-oauthlib==1.2.0 +google-auth-oauthlib==1.2.1 # via # -r requirements/base.txt # gspread @@ -69,7 +65,7 @@ gspread==5.11.3 # via # -c requirements/constraints.txt # -r requirements/base.txt -idna==3.6 +idna==3.7 # via # -r requirements/base.txt # requests @@ -92,16 +88,16 @@ packaging==21.3 # -c requirements/constraints.txt # -r requirements/base.txt # pytest -pluggy==1.4.0 +pluggy==1.5.0 # via # -r requirements/base.txt # pytest -pyasn1==0.5.1 +pyasn1==0.6.0 # via # -r requirements/base.txt # pyasn1-modules # rsa -pyasn1-modules==0.3.0 +pyasn1-modules==0.4.0 # via # -r requirements/base.txt # google-auth @@ -121,29 +117,29 @@ pytest-aiohttp==1.0.5 # via # -r requirements/base.txt # pytest-repo-health -pytest-asyncio==0.23.5 +pytest-asyncio==0.23.8 # via # -r requirements/base.txt # pytest-aiohttp -pytest-cov==4.1.0 +pytest-cov==5.0.0 # via -r requirements/test.in pytest-repo-health==3.0.2 # via -r requirements/base.txt -pyyaml==6.0.1 +pyyaml==6.0.2 # via # -r requirements/base.txt # pytest-repo-health # responses -requests==2.31.0 +requests==2.32.3 # via # -r requirements/base.txt # requests-oauthlib # responses -requests-oauthlib==1.3.1 +requests-oauthlib==2.0.0 # via # -r requirements/base.txt # google-auth-oauthlib -responses==0.25.0 +responses==0.25.3 # via -r requirements/test.in rsa==4.9 # via @@ -155,12 +151,7 @@ smmap==5.0.1 # gitdb toml==0.10.2 # via -r requirements/base.txt -tomli==2.0.1 - # via - # -r requirements/base.txt - # coverage - # pytest -urllib3==2.2.1 +urllib3==2.2.2 # via # -r requirements/base.txt # requests From 3e6484f73ac380add3483ce9aadfac3f32abbeb1 Mon Sep 17 00:00:00 2001 From: Hunia Fatima Date: Tue, 27 Aug 2024 12:32:55 +0500 Subject: [PATCH 2/4] chore: quality issue resolution --- pylintrc | 7 ++++--- repo_health/check_renovate.py | 4 ++-- repo_health/check_ubuntufiles.py | 2 +- repo_health/utils.py | 2 +- requirements/base.txt | 4 ++-- requirements/ci.txt | 2 +- requirements/dev.txt | 8 ++++---- requirements/doc.txt | 4 ++-- requirements/pip-tools.txt | 2 +- requirements/quality.txt | 6 +++--- requirements/test.txt | 4 ++-- 11 files changed, 23 insertions(+), 22 deletions(-) diff --git a/pylintrc b/pylintrc index 22cdbf7e..39b30168 100644 --- a/pylintrc +++ b/pylintrc @@ -64,7 +64,7 @@ # SERIOUSLY. # # ------------------------------ -# Generated by edx-lint version: 5.2.5 +# Generated by edx-lint version: 5.3.6 # ------------------------------ [MASTER] ignore = ,.git,.tox @@ -259,6 +259,7 @@ enable = useless-suppression, disable = bad-indentation, + broad-exception-raised, consider-using-f-string, duplicate-code, file-ignored, @@ -383,6 +384,6 @@ ext-import-graph = int-import-graph = [EXCEPTIONS] -overgeneral-exceptions = Exception +overgeneral-exceptions = builtins.Exception -# 6a5f2b58c0741088bb34597f419f7419e326a841 +# 6ba39b4accf3da730ae894307bd8cd4a4e122ab3 diff --git a/repo_health/check_renovate.py b/repo_health/check_renovate.py index 6be071c9..72490280 100644 --- a/repo_health/check_renovate.py +++ b/repo_health/check_renovate.py @@ -143,6 +143,6 @@ async def check_renovate(all_results, repo_path, github_repo): all_results[MODULE_DICT_KEY] = { 'configured': config_exists, 'last_pr': await get_last_pull_date(github_repo) if config_exists else None, - 'total_open_prs': total_open_prs if config_exists else None, - 'oldest_open_pr_date': oldest_pr_date if config_exists else None, + 'total_open_prs': total_open_prs if config_exists else None, # pylint: disable=possibly-used-before-assignment + 'oldest_open_pr_date': oldest_pr_date if config_exists else None, # pylint: disable=possibly-used-before-assignment } diff --git a/repo_health/check_ubuntufiles.py b/repo_health/check_ubuntufiles.py index c9741be2..61ea73b0 100644 --- a/repo_health/check_ubuntufiles.py +++ b/repo_health/check_ubuntufiles.py @@ -232,7 +232,7 @@ def get_playbook_data(self, playbook_path): packages = self._prepare_data(list(packages)) return packages - except Exception as exc: # pylint: disable=useless-suppression + except Exception as exc: # pylint: disable=broad-exception-caught logger.exception("Following error occurred while parsing yml playbook (%s) in configuration repo: %s", playbook_path, exc) return [] diff --git a/repo_health/utils.py b/repo_health/utils.py index 8b5f7e34..71b82dde 100644 --- a/repo_health/utils.py +++ b/repo_health/utils.py @@ -136,7 +136,7 @@ def get_release_tags(repo_dir): return all_tags_list[:all_tags_list.index(latest_tag) + 1] else: return None - except Exception as ex: + except Exception as ex: # pylint: disable=broad-exception-caught print(str(ex)) return None diff --git a/requirements/base.txt b/requirements/base.txt index 11beba24..0f1b0d9f 100644 --- a/requirements/base.txt +++ b/requirements/base.txt @@ -42,7 +42,7 @@ gspread==5.11.3 # via # -c requirements/constraints.txt # -r requirements/base.in -idna==3.7 +idna==3.8 # via # requests # yarl @@ -66,7 +66,7 @@ pyasn1==0.6.0 # rsa pyasn1-modules==0.4.0 # via google-auth -pyparsing==3.1.2 +pyparsing==3.1.4 # via packaging pytest==8.0.2 # via diff --git a/requirements/ci.txt b/requirements/ci.txt index 190a421d..6382134e 100644 --- a/requirements/ci.txt +++ b/requirements/ci.txt @@ -27,7 +27,7 @@ platformdirs==4.2.2 # virtualenv pluggy==1.5.0 # via tox -pyparsing==3.1.2 +pyparsing==3.1.4 # via packaging pyproject-api==1.5.0 # via tox diff --git a/requirements/dev.txt b/requirements/dev.txt index fd6a377e..f94f0ba4 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -93,7 +93,7 @@ django==4.2.15 # -r requirements/quality.txt dockerfile==3.3.1 # via -r requirements/quality.txt -edx-lint==5.3.7 +edx-lint==5.4.0 # via -r requirements/quality.txt filelock==3.15.4 # via @@ -128,7 +128,7 @@ gspread==5.11.3 # via # -c requirements/constraints.txt # -r requirements/quality.txt -idna==3.7 +idna==3.8 # via # -r requirements/quality.txt # requests @@ -234,7 +234,7 @@ pylint-plugin-utils==0.8.2 # -r requirements/quality.txt # pylint-celery # pylint-django -pyparsing==3.1.2 +pyparsing==3.1.4 # via # -r requirements/ci.txt # -r requirements/pip-tools.txt @@ -290,7 +290,7 @@ requests-oauthlib==2.0.0 # google-auth-oauthlib responses==0.25.3 # via -r requirements/quality.txt -rich==13.7.1 +rich==13.8.0 # via -r requirements/dev.in rsa==4.9 # via diff --git a/requirements/doc.txt b/requirements/doc.txt index ab9d6158..ec2101a2 100644 --- a/requirements/doc.txt +++ b/requirements/doc.txt @@ -86,7 +86,7 @@ gspread==5.11.3 # via # -c requirements/constraints.txt # -r requirements/test.txt -idna==3.7 +idna==3.8 # via # -r requirements/test.txt # requests @@ -143,7 +143,7 @@ pygments==2.18.0 # pydata-sphinx-theme # readme-renderer # sphinx -pyparsing==3.1.2 +pyparsing==3.1.4 # via # -r requirements/test.txt # packaging diff --git a/requirements/pip-tools.txt b/requirements/pip-tools.txt index d63f9fc9..aea42d99 100644 --- a/requirements/pip-tools.txt +++ b/requirements/pip-tools.txt @@ -14,7 +14,7 @@ packaging==21.3 # build pip-tools==7.4.1 # via -r requirements/pip-tools.in -pyparsing==3.1.2 +pyparsing==3.1.4 # via packaging pyproject-hooks==1.1.0 # via diff --git a/requirements/quality.txt b/requirements/quality.txt index 72dce640..9d2f6a31 100644 --- a/requirements/quality.txt +++ b/requirements/quality.txt @@ -60,7 +60,7 @@ django==4.2.15 # -r requirements/quality.in dockerfile==3.3.1 # via -r requirements/test.txt -edx-lint==5.3.7 +edx-lint==5.4.0 # via -r requirements/quality.in frozenlist==1.4.1 # via @@ -90,7 +90,7 @@ gspread==5.11.3 # via # -c requirements/constraints.txt # -r requirements/test.txt -idna==3.7 +idna==3.8 # via # -r requirements/test.txt # requests @@ -158,7 +158,7 @@ pylint-plugin-utils==0.8.2 # via # pylint-celery # pylint-django -pyparsing==3.1.2 +pyparsing==3.1.4 # via # -r requirements/test.txt # packaging diff --git a/requirements/test.txt b/requirements/test.txt index 7716100c..714eae54 100644 --- a/requirements/test.txt +++ b/requirements/test.txt @@ -65,7 +65,7 @@ gspread==5.11.3 # via # -c requirements/constraints.txt # -r requirements/base.txt -idna==3.7 +idna==3.8 # via # -r requirements/base.txt # requests @@ -101,7 +101,7 @@ pyasn1-modules==0.4.0 # via # -r requirements/base.txt # google-auth -pyparsing==3.1.2 +pyparsing==3.1.4 # via # -r requirements/base.txt # packaging From 70a88995dfcc451f30300adc5fbb1bf5024ac39b Mon Sep 17 00:00:00 2001 From: Hunia Fatima Date: Tue, 27 Aug 2024 14:59:12 +0500 Subject: [PATCH 3/4] chore: update threshold --- codecov.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/codecov.yml b/codecov.yml index c41479ba..ddfe3de6 100644 --- a/codecov.yml +++ b/codecov.yml @@ -3,8 +3,8 @@ coverage: project: default: target: auto - threshold: 0% + threshold: 0.1% patch: default: target: auto - threshold: 0% + threshold: 0.1% From 3bcdc9ab5a4602da2ae29f56c0293d7f1cc792dd Mon Sep 17 00:00:00 2001 From: Hunia Fatima Date: Tue, 27 Aug 2024 15:05:57 +0500 Subject: [PATCH 4/4] chore: update threshold --- codecov.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/codecov.yml b/codecov.yml index ddfe3de6..c41479ba 100644 --- a/codecov.yml +++ b/codecov.yml @@ -3,8 +3,8 @@ coverage: project: default: target: auto - threshold: 0.1% + threshold: 0% patch: default: target: auto - threshold: 0.1% + threshold: 0%