diff --git a/openedx_filters_samples/samples/pipeline.py b/openedx_filters_samples/samples/pipeline.py index 42d439c..5ad880f 100644 --- a/openedx_filters_samples/samples/pipeline.py +++ b/openedx_filters_samples/samples/pipeline.py @@ -7,8 +7,10 @@ from django.http import HttpResponse from openedx_filters import PipelineStep from openedx_filters.learning.filters import ( + AccountSettingsRenderStarted, CertificateCreationRequested, CertificateRenderStarted, + CohortAssignmentRequested, CohortChangeRequested, CourseAboutRenderStarted, CourseEnrollmentStarted, @@ -16,7 +18,6 @@ DashboardRenderStarted, StudentLoginRequested, StudentRegistrationRequested, - CohortAssignmentRequested, ) @@ -120,7 +121,7 @@ class ModifyCertificateModeBeforeCreation(PipelineStep): } } """ - def run_filter(self, user, course_id, mode, status, *args, **kwargs): # pylint: disable=arguments-differ, unused-argument + def run_filter(self, user, course_id, mode, status, *args, **kwargs): # pylint: disable=arguments-differ if mode == 'honor': return { 'mode': 'no-id-professional', @@ -196,7 +197,7 @@ def run_filter(self, current_membership, target_cohort, *args, **kwargs): # pyl user = current_membership.user user.profile.set_meta( { - "cohort_info": f"Changed from Cohort {str(current_membership.course_user_group)} to Cohort {str(target_cohort)}" + "cohort_info": f"Changed from Cohort {str(current_membership.course_user_group)} to Cohort {str(target_cohort)}" # pylint: disable=line-too-long } ) user.profile.save() @@ -243,7 +244,7 @@ class StopEnrollment(PipelineStep): } """ - def run_filter(self, *args, **kwargs): # pylint: disable=arguments-differ + def run_filter(self, *args, **kwargs): raise CourseEnrollmentStarted.PreventEnrollment("You can't enroll on this course.") @@ -265,7 +266,7 @@ class StopRegister(PipelineStep): } """ - def run_filter(self, *args, **kwargs): # pylint: disable=arguments-differ + def run_filter(self, *args, **kwargs): raise StudentRegistrationRequested.PreventRegistration("You can't register on this site.", status_code=403) @@ -642,7 +643,7 @@ def run_filter(self, context, custom_template): # pylint: disable=arguments-dif Pipeline steps that gets or creates a new custom template to render instead of the original. """ - from opaque_keys.edx.keys import CourseKey + from opaque_keys.edx.keys import CourseKey # pylint: disable=import-outside-toplevel course_key = CourseKey.from_string(context["course_id"]) custom_template = self._get_or_create_custom_template(mode='honor', course_key=course_key) @@ -652,7 +653,7 @@ def _get_or_create_custom_template(self, org_id=None, mode=None, course_key=None """ Creates a custom certificate template entry in DB. """ - from lms.djangoapps.certificates.models import CertificateTemplate + from lms.djangoapps.certificates.models import CertificateTemplate # pylint: disable=E0401, C0415 template_html = """ <%namespace name='static' file='static_content.html'/> @@ -751,3 +752,30 @@ def run_filter(self, context, template_name): # pylint: disable=arguments-diffe return { "context": context, template_name: template_name, } + + +class StopAccountSettingsRender(PipelineStep): + """ + Stop account settings render process raising RedirectToPage exception. + + Example usage: + + Add the following configurations to your configuration file: + + "OPEN_EDX_FILTERS_CONFIG": { + "org.openedx.learning.student.settings.render.started.v1": { + "fail_silently": false, + "pipeline": [ + "openedx_filters_samples.samples.pipeline.StopAccountSettingsRender" + ] + } + }, + """ + def run_filter(self, context, *args, **kwargs): # pylint: disable=arguments-differ + """ + Pipeline step that stop access to account settings page. + """ + raise AccountSettingsRenderStarted.RedirectToPage( + "You can't access to account settings.", + redirect_to="", + ) diff --git a/pylintrc b/pylintrc index 5a21140..4846bf5 100644 --- a/pylintrc +++ b/pylintrc @@ -227,7 +227,6 @@ enable = wrong-spelling-in-comment, wrong-spelling-in-docstring, - unused-argument, unused-import, unused-variable, @@ -383,7 +382,7 @@ disable = unicode-builtin, unpacking-in-except, xrange-builtin, - + unused-argument, logging-fstring-interpolation, invalid-name, django-not-configured, diff --git a/requirements/base.txt b/requirements/base.txt index 8520a50..1f0d125 100644 --- a/requirements/base.txt +++ b/requirements/base.txt @@ -1,27 +1,27 @@ # -# This file is autogenerated by pip-compile with python 3.8 +# This file is autogenerated by pip-compile with python 3.10 # To update, run: # # make upgrade # -asgiref==3.5.0 +asgiref==3.6.0 # via django -django==3.2.12 +django==3.2.18 # via # -c https://raw.githubusercontent.com/edx/edx-lint/master/edx_lint/files/common_constraints.txt # -r requirements/base.in # openedx-filters edx-opaque-keys[django]==2.3.0 # via -r requirements/base.in -openedx-filters==0.6.0 +openedx-filters==1.2.0 # via -r requirements/base.in -pbr==5.8.1 +pbr==5.11.1 # via stevedore -pymongo==3.12.3 +pymongo==3.13.0 # via edx-opaque-keys -pytz==2022.1 +pytz==2022.7.1 # via django -sqlparse==0.4.2 +sqlparse==0.4.3 # via django -stevedore==3.5.0 +stevedore==5.0.0 # via edx-opaque-keys diff --git a/requirements/ci.txt b/requirements/ci.txt index 533b807..1f88cdc 100644 --- a/requirements/ci.txt +++ b/requirements/ci.txt @@ -1,46 +1,44 @@ # -# This file is autogenerated by pip-compile with python 3.8 +# This file is autogenerated by pip-compile with python 3.10 # To update, run: # # make upgrade # -certifi==2021.10.8 +certifi==2022.12.7 # via requests -charset-normalizer==2.0.12 +charset-normalizer==3.0.1 # via requests codecov==2.1.12 # via -r requirements/ci.in -coverage==6.3.2 +coverage==7.2.1 # via codecov -distlib==0.3.4 +distlib==0.3.6 # via virtualenv -filelock==3.6.0 +filelock==3.9.0 # via # tox # virtualenv -idna==3.3 +idna==3.4 # via requests -packaging==21.3 +packaging==23.0 # via tox -platformdirs==2.5.1 +platformdirs==3.0.0 # via virtualenv pluggy==1.0.0 # via tox py==1.11.0 # via tox -pyparsing==3.0.7 - # via packaging -requests==2.27.1 +requests==2.28.2 # via codecov six==1.16.0 - # via - # tox - # virtualenv -toml==0.10.2 # via tox -tox==3.24.5 - # via -r requirements/ci.in -urllib3==1.26.9 +tomli==2.0.1 + # via tox +tox==3.28.0 + # via + # -c https://raw.githubusercontent.com/edx/edx-lint/master/edx_lint/files/common_constraints.txt + # -r requirements/ci.in +urllib3==1.26.14 # via requests -virtualenv==20.14.0 +virtualenv==20.20.0 # via tox diff --git a/requirements/dev.txt b/requirements/dev.txt index 49e8dad..f4daf9e 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -1,43 +1,47 @@ # -# This file is autogenerated by pip-compile with python 3.8 +# This file is autogenerated by pip-compile with python 3.10 # To update, run: # # make upgrade # -asgiref==3.5.0 +asgiref==3.6.0 # via # -r requirements/quality.txt # django -astroid==2.11.2 +astroid==2.14.2 # via # -r requirements/quality.txt # pylint # pylint-celery -attrs==21.4.0 +attrs==22.2.0 # via # -r requirements/quality.txt # pytest -bleach==4.1.0 +bleach==6.0.0 # via # -r requirements/quality.txt # readme-renderer -certifi==2021.10.8 +build==0.10.0 + # via + # -r requirements/pip-tools.txt + # pip-tools +certifi==2022.12.7 # via # -r requirements/ci.txt # -r requirements/quality.txt # requests -cffi==1.15.0 +cffi==1.15.1 # via # -r requirements/quality.txt # cryptography -chardet==4.0.0 +chardet==5.1.0 # via diff-cover -charset-normalizer==2.0.12 +charset-normalizer==3.0.1 # via # -r requirements/ci.txt # -r requirements/quality.txt # requests -click==8.1.2 +click==8.1.3 # via # -r requirements/pip-tools.txt # -r requirements/quality.txt @@ -55,88 +59,96 @@ code-annotations==1.3.0 # edx-lint codecov==2.1.12 # via -r requirements/ci.txt -commonmark==0.9.1 - # via - # -r requirements/quality.txt - # rich -coverage[toml]==6.3.2 +coverage[toml]==7.2.1 # via # -r requirements/ci.txt # -r requirements/quality.txt # codecov # pytest-cov -cryptography==36.0.2 +cryptography==39.0.1 # via # -r requirements/quality.txt # secretstorage -diff-cover==6.4.5 +diff-cover==7.5.0 # via -r requirements/dev.in -dill==0.3.4 +dill==0.3.6 # via # -r requirements/quality.txt # pylint -distlib==0.3.4 +distlib==0.3.6 # via # -r requirements/ci.txt # virtualenv -django==3.2.12 +django==3.2.18 # via # -c https://raw.githubusercontent.com/edx/edx-lint/master/edx_lint/files/common_constraints.txt # -r requirements/quality.txt # edx-i18n-tools # openedx-filters -docutils==0.18.1 +docutils==0.19 # via # -r requirements/quality.txt # readme-renderer -edx-i18n-tools==0.9.1 +edx-i18n-tools==0.9.2 # via -r requirements/dev.in -edx-lint==5.2.2 +edx-lint==5.3.2 # via -r requirements/quality.txt edx-opaque-keys[django]==2.3.0 # via -r requirements/quality.txt -filelock==3.6.0 +exceptiongroup==1.1.0 + # via + # -r requirements/quality.txt + # pytest +filelock==3.9.0 # via # -r requirements/ci.txt # tox # virtualenv -idna==3.3 +idna==3.4 # via # -r requirements/ci.txt # -r requirements/quality.txt # requests -importlib-metadata==4.11.3 +importlib-metadata==6.0.0 # via # -r requirements/quality.txt # keyring # twine -iniconfig==1.1.1 +iniconfig==2.0.0 # via # -r requirements/quality.txt # pytest -isort==5.10.1 +isort==5.12.0 # via # -r requirements/quality.txt # pylint -jeepney==0.7.1 +jaraco-classes==3.2.3 + # via + # -r requirements/quality.txt + # keyring +jeepney==0.8.0 # via # -r requirements/quality.txt # keyring # secretstorage -jinja2==3.1.1 +jinja2==3.1.2 # via # -r requirements/quality.txt # code-annotations # diff-cover -keyring==23.5.0 +keyring==23.13.1 # via # -r requirements/quality.txt # twine -lazy-object-proxy==1.7.1 +lazy-object-proxy==1.9.0 # via # -r requirements/quality.txt # astroid -markupsafe==2.1.1 +markdown-it-py==2.2.0 + # via + # -r requirements/quality.txt + # rich +markupsafe==2.1.2 # via # -r requirements/quality.txt # jinja2 @@ -144,32 +156,37 @@ mccabe==0.7.0 # via # -r requirements/quality.txt # pylint -openedx-filters==0.6.0 +mdurl==0.1.2 + # via + # -r requirements/quality.txt + # markdown-it-py +more-itertools==9.1.0 + # via + # -r requirements/quality.txt + # jaraco-classes +openedx-filters==1.2.0 # via -r requirements/quality.txt -packaging==21.3 +packaging==23.0 # via # -r requirements/ci.txt + # -r requirements/pip-tools.txt # -r requirements/quality.txt - # bleach + # build # pytest # tox -path==16.4.0 +path==16.6.0 # via edx-i18n-tools -pbr==5.8.1 +pbr==5.11.1 # via # -r requirements/quality.txt # stevedore -pep517==0.12.0 - # via - # -r requirements/pip-tools.txt - # pip-tools -pip-tools==6.5.1 +pip-tools==6.12.3 # via -r requirements/pip-tools.txt -pkginfo==1.8.2 +pkginfo==1.9.6 # via # -r requirements/quality.txt # twine -platformdirs==2.5.1 +platformdirs==3.0.0 # via # -r requirements/ci.txt # -r requirements/quality.txt @@ -182,29 +199,27 @@ pluggy==1.0.0 # diff-cover # pytest # tox -polib==1.1.1 +polib==1.2.0 # via edx-i18n-tools py==1.11.0 # via # -r requirements/ci.txt - # -r requirements/quality.txt - # pytest # tox -pycodestyle==2.8.0 +pycodestyle==2.10.0 # via -r requirements/quality.txt pycparser==2.21 # via # -r requirements/quality.txt # cffi -pydocstyle==6.1.1 +pydocstyle==6.3.0 # via -r requirements/quality.txt -pygments==2.11.2 +pygments==2.14.0 # via # -r requirements/quality.txt # diff-cover # readme-renderer # rich -pylint==2.13.4 +pylint==2.16.2 # via # -r requirements/quality.txt # edx-lint @@ -224,29 +239,28 @@ pylint-plugin-utils==0.7 # -r requirements/quality.txt # pylint-celery # pylint-django -pymongo==3.12.3 +pymongo==3.13.0 # via # -r requirements/quality.txt # edx-opaque-keys -pyparsing==3.0.7 +pyproject-hooks==1.0.0 # via - # -r requirements/ci.txt - # -r requirements/quality.txt - # packaging -pytest==7.1.1 + # -r requirements/pip-tools.txt + # build +pytest==7.2.1 # via # -r requirements/quality.txt # pytest-cov # pytest-django -pytest-cov==3.0.0 +pytest-cov==4.0.0 # via -r requirements/quality.txt pytest-django==4.5.2 # via -r requirements/quality.txt -python-slugify==6.1.1 +python-slugify==8.0.1 # via # -r requirements/quality.txt # code-annotations -pytz==2022.1 +pytz==2022.7.1 # via # -r requirements/quality.txt # django @@ -255,18 +269,18 @@ pyyaml==6.0 # -r requirements/quality.txt # code-annotations # edx-i18n-tools -readme-renderer==34.0 +readme-renderer==37.3 # via # -r requirements/quality.txt # twine -requests==2.27.1 +requests==2.28.2 # via # -r requirements/ci.txt # -r requirements/quality.txt # codecov # requests-toolbelt # twine -requests-toolbelt==0.9.1 +requests-toolbelt==0.10.1 # via # -r requirements/quality.txt # twine @@ -274,11 +288,11 @@ rfc3986==2.0.0 # via # -r requirements/quality.txt # twine -rich==12.0.1 +rich==13.3.1 # via # -r requirements/quality.txt # twine -secretstorage==3.3.1 +secretstorage==3.3.3 # via # -r requirements/quality.txt # keyring @@ -289,16 +303,15 @@ six==1.16.0 # bleach # edx-lint # tox - # virtualenv snowballstemmer==2.2.0 # via # -r requirements/quality.txt # pydocstyle -sqlparse==0.4.2 +sqlparse==0.4.3 # via # -r requirements/quality.txt # django -stevedore==3.5.0 +stevedore==5.0.0 # via # -r requirements/quality.txt # code-annotations @@ -307,38 +320,41 @@ text-unidecode==1.3 # via # -r requirements/quality.txt # python-slugify -toml==0.10.2 - # via - # -r requirements/ci.txt - # tox tomli==2.0.1 # via + # -r requirements/ci.txt # -r requirements/pip-tools.txt # -r requirements/quality.txt + # build # coverage - # pep517 # pylint + # pyproject-hooks # pytest -tox==3.24.5 + # tox +tomlkit==0.11.6 # via + # -r requirements/quality.txt + # pylint +tox==3.28.0 + # via + # -c https://raw.githubusercontent.com/edx/edx-lint/master/edx_lint/files/common_constraints.txt # -r requirements/ci.txt # tox-battery tox-battery==0.6.1 # via -r requirements/dev.in -twine==4.0.0 +twine==4.0.2 # via -r requirements/quality.txt -typing-extensions==4.1.1 +typing-extensions==4.5.0 # via # -r requirements/quality.txt # astroid - # pylint -urllib3==1.26.9 +urllib3==1.26.14 # via # -r requirements/ci.txt # -r requirements/quality.txt # requests # twine -virtualenv==20.14.0 +virtualenv==20.20.0 # via # -r requirements/ci.txt # tox @@ -346,15 +362,15 @@ webencodings==0.5.1 # via # -r requirements/quality.txt # bleach -wheel==0.37.1 +wheel==0.38.4 # via # -r requirements/pip-tools.txt # pip-tools -wrapt==1.14.0 +wrapt==1.15.0 # via # -r requirements/quality.txt # astroid -zipp==3.7.0 +zipp==3.15.0 # via # -r requirements/quality.txt # importlib-metadata diff --git a/requirements/doc.txt b/requirements/doc.txt index 6ecb833..23b58cc 100644 --- a/requirements/doc.txt +++ b/requirements/doc.txt @@ -1,45 +1,45 @@ # -# This file is autogenerated by pip-compile with python 3.8 +# This file is autogenerated by pip-compile with python 3.10 # To update, run: # # make upgrade # -alabaster==0.7.12 +alabaster==0.7.13 # via sphinx -asgiref==3.5.0 +asgiref==3.6.0 # via # -r requirements/test.txt # django -attrs==21.4.0 +attrs==22.2.0 # via # -r requirements/test.txt # pytest -babel==2.9.1 +babel==2.12.1 # via sphinx -bleach==4.1.0 +bleach==6.0.0 # via readme-renderer -certifi==2021.10.8 +certifi==2022.12.7 # via requests -charset-normalizer==2.0.12 +charset-normalizer==3.0.1 # via requests -click==8.1.2 +click==8.1.3 # via # -r requirements/test.txt # code-annotations code-annotations==1.3.0 # via -r requirements/test.txt -coverage[toml]==6.3.2 +coverage[toml]==7.2.1 # via # -r requirements/test.txt # pytest-cov -django==3.2.12 +django==3.2.18 # via # -c https://raw.githubusercontent.com/edx/edx-lint/master/edx_lint/files/common_constraints.txt # -r requirements/test.txt # openedx-filters -doc8==0.11.1 +doc8==1.1.1 # via -r requirements/doc.in -docutils==0.17.1 +docutils==0.19 # via # doc8 # readme-renderer @@ -47,36 +47,37 @@ docutils==0.17.1 # sphinx edx-opaque-keys[django]==2.3.0 # via -r requirements/test.txt -edx-sphinx-theme==3.0.0 +edx-sphinx-theme==3.1.0 # via -r requirements/doc.in -idna==3.3 +exceptiongroup==1.1.0 + # via + # -r requirements/test.txt + # pytest +idna==3.4 # via requests -imagesize==1.3.0 +imagesize==1.4.1 # via sphinx -importlib-metadata==4.11.3 - # via sphinx -iniconfig==1.1.1 +iniconfig==2.0.0 # via # -r requirements/test.txt # pytest -jinja2==3.1.1 +jinja2==3.1.2 # via # -r requirements/test.txt # code-annotations # sphinx -markupsafe==2.1.1 +markupsafe==2.1.2 # via # -r requirements/test.txt # jinja2 -openedx-filters==0.6.0 +openedx-filters==1.2.0 # via -r requirements/test.txt -packaging==21.3 +packaging==23.0 # via # -r requirements/test.txt - # bleach # pytest # sphinx -pbr==5.8.1 +pbr==5.11.1 # via # -r requirements/test.txt # stevedore @@ -84,48 +85,39 @@ pluggy==1.0.0 # via # -r requirements/test.txt # pytest -py==1.11.0 - # via - # -r requirements/test.txt - # pytest -pygments==2.11.2 +pygments==2.14.0 # via # doc8 # readme-renderer # sphinx -pymongo==3.12.3 +pymongo==3.13.0 # via # -r requirements/test.txt # edx-opaque-keys -pyparsing==3.0.7 - # via - # -r requirements/test.txt - # packaging -pytest==7.1.1 +pytest==7.2.1 # via # -r requirements/test.txt # pytest-cov # pytest-django -pytest-cov==3.0.0 +pytest-cov==4.0.0 # via -r requirements/test.txt pytest-django==4.5.2 # via -r requirements/test.txt -python-slugify==6.1.1 +python-slugify==8.0.1 # via # -r requirements/test.txt # code-annotations -pytz==2022.1 +pytz==2022.7.1 # via # -r requirements/test.txt - # babel # django pyyaml==6.0 # via # -r requirements/test.txt # code-annotations -readme-renderer==34.0 +readme-renderer==37.3 # via -r requirements/doc.in -requests==2.27.1 +requests==2.28.2 # via sphinx restructuredtext-lint==1.4.0 # via doc8 @@ -135,15 +127,16 @@ six==1.16.0 # edx-sphinx-theme snowballstemmer==2.2.0 # via sphinx -sphinx==4.5.0 +sphinx==5.3.0 # via + # -c https://raw.githubusercontent.com/edx/edx-lint/master/edx_lint/files/common_constraints.txt # -r requirements/doc.in # edx-sphinx-theme -sphinxcontrib-applehelp==1.0.2 +sphinxcontrib-applehelp==1.0.4 # via sphinx sphinxcontrib-devhelp==1.0.2 # via sphinx -sphinxcontrib-htmlhelp==2.0.0 +sphinxcontrib-htmlhelp==2.0.1 # via sphinx sphinxcontrib-jsmath==1.0.1 # via sphinx @@ -151,11 +144,11 @@ sphinxcontrib-qthelp==1.0.3 # via sphinx sphinxcontrib-serializinghtml==1.1.5 # via sphinx -sqlparse==0.4.2 +sqlparse==0.4.3 # via # -r requirements/test.txt # django -stevedore==3.5.0 +stevedore==5.0.0 # via # -r requirements/test.txt # code-annotations @@ -169,10 +162,9 @@ tomli==2.0.1 # via # -r requirements/test.txt # coverage + # doc8 # pytest -urllib3==1.26.9 +urllib3==1.26.14 # via requests webencodings==0.5.1 # via bleach -zipp==3.7.0 - # via importlib-metadata diff --git a/requirements/pip-tools.txt b/requirements/pip-tools.txt index c891a32..deee845 100644 --- a/requirements/pip-tools.txt +++ b/requirements/pip-tools.txt @@ -1,18 +1,22 @@ # -# This file is autogenerated by pip-compile with python 3.8 +# This file is autogenerated by pip-compile with python 3.10 # To update, run: # # make upgrade # -click==8.1.2 +build==0.10.0 # via pip-tools -pep517==0.12.0 +click==8.1.3 # via pip-tools -pip-tools==6.5.1 +packaging==23.0 + # via build +pip-tools==6.12.3 # via -r requirements/pip-tools.in +pyproject-hooks==1.0.0 + # via build tomli==2.0.1 - # via pep517 -wheel==0.37.1 + # via build +wheel==0.38.4 # via pip-tools # The following packages are considered to be unsafe in a requirements file: diff --git a/requirements/quality.txt b/requirements/quality.txt index c430936..dae14b7 100644 --- a/requirements/quality.txt +++ b/requirements/quality.txt @@ -1,30 +1,30 @@ # -# This file is autogenerated by pip-compile with python 3.8 +# This file is autogenerated by pip-compile with python 3.10 # To update, run: # # make upgrade # -asgiref==3.5.0 +asgiref==3.6.0 # via # -r requirements/test.txt # django -astroid==2.11.2 +astroid==2.14.2 # via # pylint # pylint-celery -attrs==21.4.0 +attrs==22.2.0 # via # -r requirements/test.txt # pytest -bleach==4.1.0 +bleach==6.0.0 # via readme-renderer -certifi==2021.10.8 +certifi==2022.12.7 # via requests -cffi==1.15.0 +cffi==1.15.1 # via cryptography -charset-normalizer==2.0.12 +charset-normalizer==3.0.1 # via requests -click==8.1.2 +click==8.1.3 # via # -r requirements/test.txt # click-log @@ -36,93 +36,98 @@ code-annotations==1.3.0 # via # -r requirements/test.txt # edx-lint -commonmark==0.9.1 - # via rich -coverage[toml]==6.3.2 +coverage[toml]==7.2.1 # via # -r requirements/test.txt # pytest-cov -cryptography==36.0.2 +cryptography==39.0.1 # via secretstorage -dill==0.3.4 +dill==0.3.6 # via pylint -django==3.2.12 +django==3.2.18 # via # -c https://raw.githubusercontent.com/edx/edx-lint/master/edx_lint/files/common_constraints.txt # -r requirements/test.txt # openedx-filters -docutils==0.18.1 +docutils==0.19 # via readme-renderer -edx-lint==5.2.2 +edx-lint==5.3.2 # via -r requirements/quality.in edx-opaque-keys[django]==2.3.0 # via -r requirements/test.txt -idna==3.3 +exceptiongroup==1.1.0 + # via + # -r requirements/test.txt + # pytest +idna==3.4 # via requests -importlib-metadata==4.11.3 +importlib-metadata==6.0.0 # via # keyring # twine -iniconfig==1.1.1 +iniconfig==2.0.0 # via # -r requirements/test.txt # pytest -isort==5.10.1 +isort==5.12.0 # via # -r requirements/quality.in # pylint -jeepney==0.7.1 +jaraco-classes==3.2.3 + # via keyring +jeepney==0.8.0 # via # keyring # secretstorage -jinja2==3.1.1 +jinja2==3.1.2 # via # -r requirements/test.txt # code-annotations -keyring==23.5.0 +keyring==23.13.1 # via twine -lazy-object-proxy==1.7.1 +lazy-object-proxy==1.9.0 # via astroid -markupsafe==2.1.1 +markdown-it-py==2.2.0 + # via rich +markupsafe==2.1.2 # via # -r requirements/test.txt # jinja2 mccabe==0.7.0 # via pylint -openedx-filters==0.6.0 +mdurl==0.1.2 + # via markdown-it-py +more-itertools==9.1.0 + # via jaraco-classes +openedx-filters==1.2.0 # via -r requirements/test.txt -packaging==21.3 +packaging==23.0 # via # -r requirements/test.txt - # bleach # pytest -pbr==5.8.1 +pbr==5.11.1 # via # -r requirements/test.txt # stevedore -pkginfo==1.8.2 +pkginfo==1.9.6 # via twine -platformdirs==2.5.1 +platformdirs==3.0.0 # via pylint pluggy==1.0.0 # via # -r requirements/test.txt # pytest -py==1.11.0 - # via - # -r requirements/test.txt - # pytest -pycodestyle==2.8.0 +pycodestyle==2.10.0 # via -r requirements/quality.in pycparser==2.21 # via cffi -pydocstyle==6.1.1 +pydocstyle==6.3.0 # via -r requirements/quality.in -pygments==2.11.2 +pygments==2.14.0 # via # readme-renderer # rich -pylint==2.13.4 +pylint==2.16.2 # via # edx-lint # pylint-celery @@ -136,28 +141,24 @@ pylint-plugin-utils==0.7 # via # pylint-celery # pylint-django -pymongo==3.12.3 +pymongo==3.13.0 # via # -r requirements/test.txt # edx-opaque-keys -pyparsing==3.0.7 - # via - # -r requirements/test.txt - # packaging -pytest==7.1.1 +pytest==7.2.1 # via # -r requirements/test.txt # pytest-cov # pytest-django -pytest-cov==3.0.0 +pytest-cov==4.0.0 # via -r requirements/test.txt pytest-django==4.5.2 # via -r requirements/test.txt -python-slugify==6.1.1 +python-slugify==8.0.1 # via # -r requirements/test.txt # code-annotations -pytz==2022.1 +pytz==2022.7.1 # via # -r requirements/test.txt # django @@ -165,19 +166,19 @@ pyyaml==6.0 # via # -r requirements/test.txt # code-annotations -readme-renderer==34.0 +readme-renderer==37.3 # via twine -requests==2.27.1 +requests==2.28.2 # via # requests-toolbelt # twine -requests-toolbelt==0.9.1 +requests-toolbelt==0.10.1 # via twine rfc3986==2.0.0 # via twine -rich==12.0.1 +rich==13.3.1 # via twine -secretstorage==3.3.1 +secretstorage==3.3.3 # via keyring six==1.16.0 # via @@ -185,11 +186,11 @@ six==1.16.0 # edx-lint snowballstemmer==2.2.0 # via pydocstyle -sqlparse==0.4.2 +sqlparse==0.4.3 # via # -r requirements/test.txt # django -stevedore==3.5.0 +stevedore==5.0.0 # via # -r requirements/test.txt # code-annotations @@ -204,22 +205,19 @@ tomli==2.0.1 # coverage # pylint # pytest -twine==4.0.0 +tomlkit==0.11.6 + # via pylint +twine==4.0.2 # via -r requirements/quality.in -typing-extensions==4.1.1 - # via - # astroid - # pylint -urllib3==1.26.9 +typing-extensions==4.5.0 + # via astroid +urllib3==1.26.14 # via # requests # twine webencodings==0.5.1 # via bleach -wrapt==1.14.0 +wrapt==1.15.0 # via astroid -zipp==3.7.0 +zipp==3.15.0 # via importlib-metadata - -# The following packages are considered to be unsafe in a requirements file: -# setuptools diff --git a/requirements/test.txt b/requirements/test.txt index 081088c..a8390e7 100644 --- a/requirements/test.txt +++ b/requirements/test.txt @@ -1,20 +1,20 @@ # -# This file is autogenerated by pip-compile with python 3.8 +# This file is autogenerated by pip-compile with python 3.10 # To update, run: # # make upgrade # -asgiref==3.5.0 +asgiref==3.6.0 # via # -r requirements/base.txt # django -attrs==21.4.0 +attrs==22.2.0 # via pytest -click==8.1.2 +click==8.1.3 # via code-annotations code-annotations==1.3.0 # via -r requirements/test.in -coverage[toml]==6.3.2 +coverage[toml]==7.2.1 # via pytest-cov # via # -c https://raw.githubusercontent.com/edx/edx-lint/master/edx_lint/files/common_constraints.txt @@ -22,51 +22,49 @@ coverage[toml]==6.3.2 # openedx-filters edx-opaque-keys[django]==2.3.0 # via -r requirements/base.txt -iniconfig==1.1.1 +exceptiongroup==1.1.0 # via pytest -jinja2==3.1.1 +iniconfig==2.0.0 + # via pytest +jinja2==3.1.2 # via code-annotations -markupsafe==2.1.1 +markupsafe==2.1.2 # via jinja2 -openedx-filters==0.6.0 +openedx-filters==1.2.0 # via -r requirements/base.txt -packaging==21.3 +packaging==23.0 # via pytest -pbr==5.8.1 +pbr==5.11.1 # via # -r requirements/base.txt # stevedore pluggy==1.0.0 # via pytest -py==1.11.0 - # via pytest -pymongo==3.12.3 +pymongo==3.13.0 # via # -r requirements/base.txt # edx-opaque-keys -pyparsing==3.0.7 - # via packaging -pytest==7.1.1 +pytest==7.2.1 # via # pytest-cov # pytest-django -pytest-cov==3.0.0 +pytest-cov==4.0.0 # via -r requirements/test.in pytest-django==4.5.2 # via -r requirements/test.in -python-slugify==6.1.1 +python-slugify==8.0.1 # via code-annotations -pytz==2022.1 +pytz==2022.7.1 # via # -r requirements/base.txt # django pyyaml==6.0 # via code-annotations -sqlparse==0.4.2 +sqlparse==0.4.3 # via # -r requirements/base.txt # django -stevedore==3.5.0 +stevedore==5.0.0 # via # -r requirements/base.txt # code-annotations diff --git a/tox.ini b/tox.ini index 7237f85..05513b7 100644 --- a/tox.ini +++ b/tox.ini @@ -6,6 +6,8 @@ envlist = py38-django{22,30}, quality, docs, pii_check ignore=D001 [pycodestyle] +; E501 = Line too long +ignore=E501 exclude = .git,.tox,migrations max-line-length = 120