diff --git a/openedx_tagging/core/tagging/import_export/api.py b/openedx_tagging/core/tagging/import_export/api.py index 6d4e9bf4..591e3487 100644 --- a/openedx_tagging/core/tagging/import_export/api.py +++ b/openedx_tagging/core/tagging/import_export/api.py @@ -151,7 +151,7 @@ def import_tags( task.end_success(global_elapsed_time) return True, task, tag_import_plan - except Exception as exception: + except Exception as exception: # pylint: disable=broad-exception-caught # Log any exception task.log_exception(exception) return False, task, None diff --git a/pylintrc b/pylintrc index cbc61bcf..b56bdeec 100644 --- a/pylintrc +++ b/pylintrc @@ -64,7 +64,7 @@ # SERIOUSLY. # # ------------------------------ -# Generated by edx-lint version: 5.2.5 +# Generated by edx-lint version: 5.4.0 # ------------------------------ [MASTER] ignore = migrations @@ -259,6 +259,7 @@ enable = useless-suppression, disable = bad-indentation, + broad-exception-raised, consider-using-f-string, duplicate-code, file-ignored, @@ -289,6 +290,7 @@ disable = invalid-name, django-not-configured, consider-using-with, + too-many-positional-arguments, [REPORTS] output-format = text @@ -383,6 +385,6 @@ ext-import-graph = int-import-graph = [EXCEPTIONS] -overgeneral-exceptions = Exception +overgeneral-exceptions = builtins.Exception -# 5d436c7ffdaa72d45855a50615b6dd757f12ecfd +# c4105d3d0befa7f3f6a9b4aab21fed19122d44fd diff --git a/pylintrc_tweaks b/pylintrc_tweaks index f999b169..8eb879bd 100644 --- a/pylintrc_tweaks +++ b/pylintrc_tweaks @@ -8,3 +8,4 @@ disable+= invalid-name, django-not-configured, consider-using-with, + too-many-positional-arguments, diff --git a/requirements/base.txt b/requirements/base.txt index 58c2a8cf..b7e28bbc 100644 --- a/requirements/base.txt +++ b/requirements/base.txt @@ -10,7 +10,7 @@ asgiref==3.8.1 # via django attrs==24.2.0 # via -r requirements/base.in -billiard==4.2.0 +billiard==4.2.1 # via celery celery==5.4.0 # via -r requirements/base.in @@ -70,13 +70,13 @@ edx-opaque-keys==2.11.0 # via edx-drf-extensions idna==3.10 # via requests -kombu==5.4.1 +kombu==5.4.2 # via celery -newrelic==9.13.0 +newrelic==10.0.0 # via edx-django-utils pbr==6.1.0 # via stevedore -prompt-toolkit==3.0.47 +prompt-toolkit==3.0.48 # via click-repl psutil==6.0.0 # via edx-django-utils @@ -86,7 +86,7 @@ pyjwt[crypto]==2.9.0 # via # drf-jwt # edx-drf-extensions -pymongo==4.8.0 +pymongo==4.9.1 # via edx-opaque-keys pynacl==1.5.0 # via edx-django-utils @@ -108,8 +108,10 @@ stevedore==5.3.0 # edx-opaque-keys typing-extensions==4.12.2 # via edx-opaque-keys -tzdata==2024.1 - # via celery +tzdata==2024.2 + # via + # celery + # kombu urllib3==2.2.3 # via requests vine==5.1.0 diff --git a/requirements/ci.txt b/requirements/ci.txt index 98393e18..e256887e 100644 --- a/requirements/ci.txt +++ b/requirements/ci.txt @@ -14,7 +14,7 @@ colorama==0.4.6 # via tox distlib==0.3.8 # via virtualenv -filelock==3.16.0 +filelock==3.16.1 # via # tox # virtualenv @@ -26,19 +26,19 @@ packaging==24.1 # via # pyproject-api # tox -platformdirs==4.3.3 +platformdirs==4.3.6 # via # tox # virtualenv pluggy==1.5.0 # via tox -pyproject-api==1.7.1 +pyproject-api==1.8.0 # via tox -tox==4.18.1 +tox==4.20.0 # via -r requirements/ci.in typing-extensions==4.12.2 # via # grimp # import-linter -virtualenv==20.26.4 +virtualenv==20.26.6 # via tox diff --git a/requirements/dev.txt b/requirements/dev.txt index 6817c8e6..196fa230 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -13,7 +13,7 @@ asgiref==3.8.1 # -r requirements/quality.txt # django # django-stubs -astroid==3.2.4 +astroid==3.3.4 # via # -r requirements/quality.txt # pylint @@ -24,7 +24,7 @@ backports-tarfile==1.2.0 # via # -r requirements/quality.txt # jaraco-context -billiard==4.2.0 +billiard==4.2.1 # via # -r requirements/quality.txt # celery @@ -108,7 +108,7 @@ ddt==1.7.2 # via -r requirements/quality.txt diff-cover==9.2.0 # via -r requirements/dev.in -dill==0.3.8 +dill==0.3.9 # via # -r requirements/quality.txt # pylint @@ -138,11 +138,11 @@ django-debug-toolbar==4.4.6 # via # -r requirements/dev.in # -r requirements/quality.txt -django-stubs==5.0.4 +django-stubs==5.1.0 # via # -r requirements/quality.txt # djangorestframework-stubs -django-stubs-ext==5.0.4 +django-stubs-ext==5.1.0 # via # -r requirements/quality.txt # django-stubs @@ -184,7 +184,7 @@ edx-opaque-keys==2.11.0 # via # -r requirements/quality.txt # edx-drf-extensions -filelock==3.16.0 +filelock==3.16.1 # via # -r requirements/ci.txt # tox @@ -225,7 +225,7 @@ jaraco-context==6.0.1 # via # -r requirements/quality.txt # keyring -jaraco-functools==4.0.2 +jaraco-functools==4.1.0 # via # -r requirements/quality.txt # keyring @@ -239,11 +239,11 @@ jinja2==3.1.4 # -r requirements/quality.txt # code-annotations # diff-cover -keyring==25.3.0 +keyring==25.4.1 # via # -r requirements/quality.txt # twine -kombu==5.4.1 +kombu==5.4.2 # via # -r requirements/quality.txt # celery @@ -284,7 +284,7 @@ mypy-extensions==1.0.0 # mypy mysqlclient==2.2.4 # via -r requirements/quality.txt -newrelic==9.13.0 +newrelic==10.0.0 # via # -r requirements/quality.txt # edx-django-utils @@ -313,7 +313,7 @@ pkginfo==1.10.0 # via # -r requirements/quality.txt # twine -platformdirs==4.3.3 +platformdirs==4.3.6 # via # -r requirements/ci.txt # -r requirements/quality.txt @@ -329,7 +329,7 @@ pluggy==1.5.0 # tox polib==1.2.0 # via edx-i18n-tools -prompt-toolkit==3.0.47 +prompt-toolkit==3.0.48 # via # -r requirements/quality.txt # click-repl @@ -356,7 +356,7 @@ pyjwt[crypto]==2.9.0 # -r requirements/quality.txt # drf-jwt # edx-drf-extensions -pylint==3.2.7 +pylint==3.3.1 # via # -r requirements/quality.txt # edx-lint @@ -376,7 +376,7 @@ pylint-plugin-utils==0.8.2 # -r requirements/quality.txt # pylint-celery # pylint-django -pymongo==4.8.0 +pymongo==4.9.1 # via # -r requirements/quality.txt # edx-opaque-keys @@ -384,11 +384,11 @@ pynacl==1.5.0 # via # -r requirements/quality.txt # edx-django-utils -pyproject-api==1.7.1 +pyproject-api==1.8.0 # via # -r requirements/ci.txt # tox -pyproject-hooks==1.1.0 +pyproject-hooks==1.2.0 # via # -r requirements/pip-tools.txt # build @@ -477,11 +477,11 @@ tomlkit==0.13.2 # via # -r requirements/quality.txt # pylint -tox==4.18.1 +tox==4.20.0 # via -r requirements/ci.txt twine==5.1.1 # via -r requirements/quality.txt -types-pyyaml==6.0.12.20240808 +types-pyyaml==6.0.12.20240917 # via # -r requirements/quality.txt # django-stubs @@ -501,10 +501,11 @@ typing-extensions==4.12.2 # grimp # import-linter # mypy -tzdata==2024.1 +tzdata==2024.2 # via # -r requirements/quality.txt # celery + # kombu urllib3==2.2.3 # via # -r requirements/quality.txt @@ -517,7 +518,7 @@ vine==5.1.0 # amqp # celery # kombu -virtualenv==20.26.4 +virtualenv==20.26.6 # via # -r requirements/ci.txt # tox diff --git a/requirements/doc.txt b/requirements/doc.txt index 0c2d9597..bfc1c1b5 100644 --- a/requirements/doc.txt +++ b/requirements/doc.txt @@ -25,7 +25,7 @@ babel==2.16.0 # sphinx beautifulsoup4==4.12.3 # via pydata-sphinx-theme -billiard==4.2.0 +billiard==4.2.1 # via # -r requirements/test.txt # celery @@ -98,11 +98,11 @@ django-crum==0.7.9 # edx-django-utils django-debug-toolbar==4.4.6 # via -r requirements/test.txt -django-stubs==5.0.4 +django-stubs==5.1.0 # via # -r requirements/test.txt # djangorestframework-stubs -django-stubs-ext==5.0.4 +django-stubs-ext==5.1.0 # via # -r requirements/test.txt # django-stubs @@ -168,7 +168,7 @@ jinja2==3.1.4 # -r requirements/test.txt # code-annotations # sphinx -kombu==5.4.1 +kombu==5.4.2 # via # -r requirements/test.txt # celery @@ -186,7 +186,7 @@ mypy-extensions==1.0.0 # mypy mysqlclient==2.2.4 # via -r requirements/test.txt -newrelic==9.13.0 +newrelic==10.0.0 # via # -r requirements/test.txt # edx-django-utils @@ -208,7 +208,7 @@ pluggy==1.5.0 # pytest pprintpp==0.4.0 # via sphinxcontrib-django -prompt-toolkit==3.0.47 +prompt-toolkit==3.0.48 # via # -r requirements/test.txt # click-repl @@ -234,7 +234,7 @@ pyjwt[crypto]==2.9.0 # -r requirements/test.txt # drf-jwt # edx-drf-extensions -pymongo==4.8.0 +pymongo==4.9.1 # via # -r requirements/test.txt # edx-opaque-keys @@ -326,7 +326,7 @@ text-unidecode==1.3 # via # -r requirements/test.txt # python-slugify -types-pyyaml==6.0.12.20240808 +types-pyyaml==6.0.12.20240917 # via # -r requirements/test.txt # django-stubs @@ -346,10 +346,11 @@ typing-extensions==4.12.2 # import-linter # mypy # pydata-sphinx-theme -tzdata==2024.1 +tzdata==2024.2 # via # -r requirements/test.txt # celery + # kombu urllib3==2.2.3 # via # -r requirements/test.txt diff --git a/requirements/pip-tools.txt b/requirements/pip-tools.txt index 84acdf9b..6eb4c374 100644 --- a/requirements/pip-tools.txt +++ b/requirements/pip-tools.txt @@ -12,7 +12,7 @@ packaging==24.1 # via build pip-tools==7.4.1 # via -r requirements/pip-tools.in -pyproject-hooks==1.1.0 +pyproject-hooks==1.2.0 # via # build # pip-tools diff --git a/requirements/pip.txt b/requirements/pip.txt index ec02f2b8..36c777e2 100644 --- a/requirements/pip.txt +++ b/requirements/pip.txt @@ -10,5 +10,5 @@ wheel==0.44.0 # The following packages are considered to be unsafe in a requirements file: pip==24.2 # via -r requirements/pip.in -setuptools==75.0.0 +setuptools==75.1.0 # via -r requirements/pip.in diff --git a/requirements/quality.txt b/requirements/quality.txt index b0caed4c..c6d6ee2a 100644 --- a/requirements/quality.txt +++ b/requirements/quality.txt @@ -13,7 +13,7 @@ asgiref==3.8.1 # -r requirements/test.txt # django # django-stubs -astroid==3.2.4 +astroid==3.3.4 # via # pylint # pylint-celery @@ -21,7 +21,7 @@ attrs==24.2.0 # via -r requirements/test.txt backports-tarfile==1.2.0 # via jaraco-context -billiard==4.2.0 +billiard==4.2.1 # via # -r requirements/test.txt # celery @@ -81,7 +81,7 @@ cryptography==43.0.1 # secretstorage ddt==1.7.2 # via -r requirements/test.txt -dill==0.3.8 +dill==0.3.9 # via pylint django==4.2.16 # via @@ -102,11 +102,11 @@ django-crum==0.7.9 # edx-django-utils django-debug-toolbar==4.4.6 # via -r requirements/test.txt -django-stubs==5.0.4 +django-stubs==5.1.0 # via # -r requirements/test.txt # djangorestframework-stubs -django-stubs-ext==5.0.4 +django-stubs-ext==5.1.0 # via # -r requirements/test.txt # django-stubs @@ -172,7 +172,7 @@ jaraco-classes==3.4.0 # via keyring jaraco-context==6.0.1 # via keyring -jaraco-functools==4.0.2 +jaraco-functools==4.1.0 # via keyring jeepney==0.8.0 # via @@ -182,9 +182,9 @@ jinja2==3.1.4 # via # -r requirements/test.txt # code-annotations -keyring==25.3.0 +keyring==25.4.1 # via twine -kombu==5.4.1 +kombu==5.4.2 # via # -r requirements/test.txt # celery @@ -212,7 +212,7 @@ mypy-extensions==1.0.0 # mypy mysqlclient==2.2.4 # via -r requirements/test.txt -newrelic==9.13.0 +newrelic==10.0.0 # via # -r requirements/test.txt # edx-django-utils @@ -228,13 +228,13 @@ pbr==6.1.0 # stevedore pkginfo==1.10.0 # via twine -platformdirs==4.3.3 +platformdirs==4.3.6 # via pylint pluggy==1.5.0 # via # -r requirements/test.txt # pytest -prompt-toolkit==3.0.47 +prompt-toolkit==3.0.48 # via # -r requirements/test.txt # click-repl @@ -259,7 +259,7 @@ pyjwt[crypto]==2.9.0 # -r requirements/test.txt # drf-jwt # edx-drf-extensions -pylint==3.2.7 +pylint==3.3.1 # via # edx-lint # pylint-celery @@ -273,7 +273,7 @@ pylint-plugin-utils==0.8.2 # via # pylint-celery # pylint-django -pymongo==4.8.0 +pymongo==4.9.1 # via # -r requirements/test.txt # edx-opaque-keys @@ -352,7 +352,7 @@ tomlkit==0.13.2 # via pylint twine==5.1.1 # via -r requirements/quality.in -types-pyyaml==6.0.12.20240808 +types-pyyaml==6.0.12.20240917 # via # -r requirements/test.txt # django-stubs @@ -371,10 +371,11 @@ typing-extensions==4.12.2 # grimp # import-linter # mypy -tzdata==2024.1 +tzdata==2024.2 # via # -r requirements/test.txt # celery + # kombu urllib3==2.2.3 # via # -r requirements/test.txt diff --git a/requirements/test.txt b/requirements/test.txt index abf290af..939ffe90 100644 --- a/requirements/test.txt +++ b/requirements/test.txt @@ -15,7 +15,7 @@ asgiref==3.8.1 # django-stubs attrs==24.2.0 # via -r requirements/base.txt -billiard==4.2.0 +billiard==4.2.1 # via # -r requirements/base.txt # celery @@ -86,11 +86,11 @@ django-crum==0.7.9 # edx-django-utils django-debug-toolbar==4.4.6 # via -r requirements/test.in -django-stubs==5.0.4 +django-stubs==5.1.0 # via # -r requirements/test.in # djangorestframework-stubs -django-stubs-ext==5.0.4 +django-stubs-ext==5.1.0 # via django-stubs django-waffle==4.1.0 # via @@ -136,7 +136,7 @@ iniconfig==2.0.0 # via pytest jinja2==3.1.4 # via code-annotations -kombu==5.4.1 +kombu==5.4.2 # via # -r requirements/base.txt # celery @@ -150,7 +150,7 @@ mypy-extensions==1.0.0 # via mypy mysqlclient==2.2.4 # via -r requirements/test.in -newrelic==9.13.0 +newrelic==10.0.0 # via # -r requirements/base.txt # edx-django-utils @@ -162,7 +162,7 @@ pbr==6.1.0 # stevedore pluggy==1.5.0 # via pytest -prompt-toolkit==3.0.47 +prompt-toolkit==3.0.48 # via # -r requirements/base.txt # click-repl @@ -179,7 +179,7 @@ pyjwt[crypto]==2.9.0 # -r requirements/base.txt # drf-jwt # edx-drf-extensions -pymongo==4.8.0 +pymongo==4.9.1 # via # -r requirements/base.txt # edx-opaque-keys @@ -233,7 +233,7 @@ stevedore==5.3.0 # edx-opaque-keys text-unidecode==1.3 # via python-slugify -types-pyyaml==6.0.12.20240808 +types-pyyaml==6.0.12.20240917 # via # django-stubs # djangorestframework-stubs @@ -249,10 +249,11 @@ typing-extensions==4.12.2 # grimp # import-linter # mypy -tzdata==2024.1 +tzdata==2024.2 # via # -r requirements/base.txt # celery + # kombu urllib3==2.2.3 # via # -r requirements/base.txt