Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,11 @@ upgrade: ## update the requirements/*.txt files with the latest packages satisf
quality: ## check coding style with pycodestyle and pylint
pylint openedx_filters test_utils *.py
mypy
pycodestyle openedx_filters *.py
ruff check openedx_filters *.py
isort --check-only --diff --recursive test_utils openedx_filters *.py test_settings.py
ruff check test_utils openedx_filters
python setup.py bdist_wheel
twine check dist/*
make selfcheck


requirements: ## install development environment requirements
pip install -r requirements/pip.txt
pip install -r requirements/pip-tools.txt
Expand Down
2 changes: 1 addition & 1 deletion manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# issue is really that Django is missing to avoid masking other
# exceptions on Python 2.
try:
import django # pylint: disable=unused-import
import django # pylint: disable=unused-import # noqa: F401
except ImportError as error:
raise ImportError(
"Couldn't import Django. Are you sure it's installed and "
Expand Down
2 changes: 1 addition & 1 deletion openedx_filters/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""
Filters of the Open edX platform.
"""
from openedx_filters.filters import *
from openedx_filters.filters import * # noqa: F403

__version__ = "2.1.0"
2 changes: 1 addition & 1 deletion openedx_filters/learning/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ class PreventCertificateCreation(OpenEdxFilterException):
"""

@classmethod
def run_filter( # pylint: disable=too-many-positional-arguments
def run_filter( # pylint: disable=too-many-positional-arguments # noqa: PLR0917
cls,
user: Any,
course_key: CourseKey,
Expand Down
4 changes: 2 additions & 2 deletions requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
# make upgrade
#
asgiref==3.9.1
asgiref==3.9.2
# via django
django==4.2.24
# via
Expand All @@ -14,7 +14,7 @@ dnspython==2.8.0
# via pymongo
edx-opaque-keys[django]==3.0.0
# via -r requirements/base.in
pymongo==4.15.0
pymongo==4.15.1
# via edx-opaque-keys
sqlparse==0.5.3
# via django
Expand Down
26 changes: 12 additions & 14 deletions requirements/dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
# make upgrade
#
asgiref==3.9.1
asgiref==3.9.2
# via
# -r requirements/quality.txt
# django
Expand Down Expand Up @@ -44,7 +44,7 @@ charset-normalizer==3.4.3
# via
# -r requirements/quality.txt
# requests
click==8.2.1
click==8.3.0
# via
# -r requirements/pip-tools.txt
# -r requirements/quality.txt
Expand All @@ -66,17 +66,17 @@ colorama==0.4.6
# via
# -r requirements/ci.txt
# tox
coverage[toml]==7.10.6
coverage[toml]==7.10.7
# via
# -r requirements/quality.txt
# pytest-cov
cryptography==45.0.7
cryptography==46.0.1
# via
# -r requirements/quality.txt
# secretstorage
ddt==1.7.2
# via -r requirements/quality.txt
diff-cover==9.6.0
diff-cover==9.7.1
# via -r requirements/dev.in
dill==0.4.0
# via
Expand All @@ -102,7 +102,7 @@ dnspython==2.8.0
# via
# -r requirements/quality.txt
# pymongo
docutils==0.22
docutils==0.22.2
# via
# -r requirements/quality.txt
# readme-renderer
Expand Down Expand Up @@ -167,7 +167,7 @@ markdown-it-py==4.0.0
# -r requirements/quality.txt
# rich
# scriv
markupsafe==3.0.2
markupsafe==3.0.3
# via
# -r requirements/quality.txt
# jinja2
Expand All @@ -184,7 +184,7 @@ more-itertools==10.8.0
# -r requirements/quality.txt
# jaraco-classes
# jaraco-functools
mypy==1.18.1
mypy==1.18.2
# via -r requirements/quality.txt
mypy-extensions==1.1.0
# via
Expand Down Expand Up @@ -225,8 +225,6 @@ pluggy==1.6.0
# pytest
# pytest-cov
# tox
pycodestyle==2.14.0
# via -r requirements/quality.txt
pycparser==2.23
# via
# -r requirements/quality.txt
Expand Down Expand Up @@ -258,7 +256,7 @@ pylint-plugin-utils==0.9.0
# -r requirements/quality.txt
# pylint-celery
# pylint-django
pymongo==4.15.0
pymongo==4.15.1
# via
# -r requirements/quality.txt
# edx-opaque-keys
Expand All @@ -284,7 +282,7 @@ python-slugify==8.0.4
# via
# -r requirements/quality.txt
# code-annotations
pyyaml==6.0.2
pyyaml==6.0.3
# via
# -r requirements/quality.txt
# code-annotations
Expand All @@ -311,7 +309,7 @@ rich==14.1.0
# via
# -r requirements/quality.txt
# twine
ruff==0.13.0
ruff==0.13.2
# via -r requirements/quality.txt
scriv==1.7.0
# via -r requirements/dev.in
Expand Down Expand Up @@ -344,7 +342,7 @@ tox==4.30.2
# via -r requirements/ci.txt
twine==6.2.0
# via -r requirements/quality.txt
types-pyyaml==6.0.12.20250822
types-pyyaml==6.0.12.20250915
# via
# -r requirements/quality.txt
# django-stubs
Expand Down
24 changes: 12 additions & 12 deletions requirements/doc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ accessible-pygments==0.0.5
# via pydata-sphinx-theme
alabaster==1.0.0
# via sphinx
anyio==4.10.0
anyio==4.11.0
# via
# starlette
# watchfiles
asgiref==3.9.1
asgiref==3.9.2
# via
# -r requirements/test.txt
# django
Expand All @@ -22,7 +22,7 @@ babel==2.17.0
# sphinx
backports-tarfile==1.2.0
# via jaraco-context
beautifulsoup4==4.13.5
beautifulsoup4==4.14.2
# via pydata-sphinx-theme
build==1.3.0
# via -r requirements/doc.in
Expand All @@ -32,7 +32,7 @@ cffi==2.0.0
# via cryptography
charset-normalizer==3.4.3
# via requests
click==8.2.1
click==8.3.0
# via
# -r requirements/test.txt
# code-annotations
Expand All @@ -41,11 +41,11 @@ code-annotations==2.3.0
# via -r requirements/test.txt
colorama==0.4.6
# via sphinx-autobuild
coverage[toml]==7.10.6
coverage[toml]==7.10.7
# via
# -r requirements/test.txt
# pytest-cov
cryptography==45.0.7
cryptography==46.0.1
# via secretstorage
ddt==1.7.2
# via -r requirements/test.txt
Expand Down Expand Up @@ -111,7 +111,7 @@ keyring==25.6.0
# via twine
markdown-it-py==4.0.0
# via rich
markupsafe==3.0.2
markupsafe==3.0.3
# via
# -r requirements/test.txt
# jinja2
Expand All @@ -121,7 +121,7 @@ more-itertools==10.8.0
# via
# jaraco-classes
# jaraco-functools
mypy==1.18.1
mypy==1.18.2
# via -r requirements/test.txt
mypy-extensions==1.1.0
# via
Expand Down Expand Up @@ -160,7 +160,7 @@ pygments==2.19.2
# readme-renderer
# rich
# sphinx
pymongo==4.15.0
pymongo==4.15.1
# via
# -r requirements/test.txt
# edx-opaque-keys
Expand All @@ -179,7 +179,7 @@ python-slugify==8.0.4
# via
# -r requirements/test.txt
# code-annotations
pyyaml==6.0.2
pyyaml==6.0.3
# via
# -r requirements/test.txt
# code-annotations
Expand Down Expand Up @@ -259,7 +259,7 @@ text-unidecode==1.3
# python-slugify
twine==6.2.0
# via -r requirements/doc.in
types-pyyaml==6.0.12.20250822
types-pyyaml==6.0.12.20250915
# via
# -r requirements/test.txt
# django-stubs
Expand All @@ -278,7 +278,7 @@ urllib3==2.5.0
# via
# requests
# twine
uvicorn==0.35.0
uvicorn==0.37.0
# via sphinx-autobuild
watchfiles==1.1.0
# via sphinx-autobuild
Expand Down
2 changes: 1 addition & 1 deletion requirements/pip-tools.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#
build==1.3.0
# via pip-tools
click==8.2.1
click==8.3.0
# via pip-tools
packaging==25.0
# via build
Expand Down
2 changes: 0 additions & 2 deletions requirements/quality.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
-r test.txt # Core and testing dependencies for this package

edx-lint # edX pylint rules and plugins
isort # to standardize order of imports
pycodestyle # PEP 8 compliance validation
twine # Utility for publishing Python packages on PyPI.
mypy # Static type checker
ruff # A modern Python code linter and formatter.
Loading