Skip to content

Commit

Permalink
chore: Upgrade Python requirements (#465)
Browse files Browse the repository at this point in the history
* chore: Upgrade Python requirements

* chore: remove tests from pylint check

* chore: quality fixes

---------

Co-authored-by: Cristhian Garcia <[email protected]>
  • Loading branch information
edx-requirements-bot and Ian2012 authored Oct 16, 2024
1 parent 1be477a commit 33d9651
Show file tree
Hide file tree
Showing 13 changed files with 214 additions and 181 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class QueuedSender:
"""
Handles queuing and sending events to the destination.
"""
def __init__(
def __init__( # pylint: disable=too-many-positional-arguments
self,
destination,
destination_container,
Expand Down
11 changes: 10 additions & 1 deletion event_routing_backends/utils/http_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,16 @@ class HttpClient:
A generic HTTP Client.
"""

def __init__(self, url='', auth_scheme='', auth_key='', headers=None, username=None, password=None, **options):
def __init__( # pylint: disable=too-many-positional-arguments
self,
url='',
auth_scheme='',
auth_key='',
headers=None,
username=None,
password=None,
**options
):
"""
Initialize the client with provided configurations.
Expand Down
10 changes: 9 additions & 1 deletion event_routing_backends/utils/xapi_lrs_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,15 @@ class LrsClient:
An LRS client for xAPI stores.
"""

def __init__(self, url=None, version=None, auth_scheme=None, auth_key=None, username=None, password=None):
def __init__( # pylint: disable=too-many-positional-arguments
self,
url=None,
version=None,
auth_scheme=None,
auth_key=None,
username=None,
password=None
):
"""
Initialize the client with provided configurations.
Expand Down
6 changes: 3 additions & 3 deletions pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@
# SERIOUSLY.
#
# ------------------------------
# Generated by edx-lint version: 5.3.6
# Generated by edx-lint version: 5.4.0
# ------------------------------
[MASTER]
ignore = migrations
ignore = migrations,tests
persistent = yes
load-plugins = edx_lint.pylint,pylint_django,pylint_celery

Expand Down Expand Up @@ -384,4 +384,4 @@ int-import-graph =
[EXCEPTIONS]
overgeneral-exceptions = builtins.Exception

# 056eb70bf90e13f94ca9ae8ac1fa84836c7139ba
# 01396b4275d82ab785443ba1dd8ec0d963f27319
2 changes: 1 addition & 1 deletion pylintrc_tweaks
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# pylintrc tweaks for use with edx_lint.
[MASTER]
ignore = migrations
ignore = migrations,tests
load-plugins = edx_lint.pylint,pylint_django,pylint_celery

[MESSAGES CONTROL]
Expand Down
49 changes: 25 additions & 24 deletions requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,19 @@ asgiref==3.8.1
# via django
attrs==24.2.0
# via openedx-events
billiard==4.2.0
billiard==4.2.1
# via celery
celery==5.4.0
# via
# edx-celeryutils
# event-tracking
certifi==2024.7.4
certifi==2024.8.30
# via requests
cffi==1.17.0
cffi==1.17.1
# via
# cryptography
# pynacl
charset-normalizer==3.3.2
charset-normalizer==3.4.0
# via requests
click==8.1.7
# via
Expand All @@ -44,9 +44,9 @@ click-repl==0.3.0
# via celery
code-annotations==1.8.0
# via edx-toggles
cryptography==43.0.0
cryptography==43.0.1
# via django-fernet-fields-v2
django==4.2.15
django==4.2.16
# via
# -c https://raw.githubusercontent.com/edx/edx-lint/master/edx_lint/files/common_constraints.txt
# -r requirements/base.in
Expand All @@ -72,7 +72,7 @@ django-crum==0.7.9
# edx-toggles
django-fernet-fields-v2==0.9
# via -r requirements/base.in
django-model-utils==4.5.1
django-model-utils==5.0.0
# via edx-celeryutils
django-redis==5.4.0
# via -r requirements/base.in
Expand All @@ -86,13 +86,13 @@ edx-ccx-keys==1.3.0
# via openedx-events
edx-celeryutils==1.3.0
# via -r requirements/base.in
edx-django-utils==5.15.0
edx-django-utils==6.1.0
# via
# django-config-models
# edx-toggles
# event-tracking
# openedx-events
edx-opaque-keys[django]==2.10.0
edx-opaque-keys[django]==2.11.0
# via
# edx-ccx-keys
# openedx-events
Expand All @@ -104,33 +104,33 @@ event-tracking==2.4.0
# via
# -c https://raw.githubusercontent.com/edx/edx-lint/master/edx_lint/files/common_constraints.txt
# -r requirements/base.in
fastavro==1.9.5
fastavro==1.9.7
# via openedx-events
fasteners==0.19
# via -r requirements/base.in
idna==3.8
idna==3.10
# via requests
isodate==0.6.1
isodate==0.7.2
# via -r requirements/base.in
jinja2==3.1.4
# via code-annotations
jsonfield==3.1.0
# via
# -r requirements/base.in
# edx-celeryutils
kombu==5.4.0
kombu==5.4.2
# via celery
markupsafe==2.1.5
markupsafe==3.0.1
# via jinja2
newrelic==9.13.0
newrelic==10.2.0
# via edx-django-utils
openedx-events==9.12.0
openedx-events==9.15.0
# via event-tracking
openedx-filters==1.9.0
openedx-filters==1.11.0
# via -r requirements/base.in
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
Expand All @@ -148,14 +148,14 @@ python-dateutil==2.9.0.post0
# celery
python-slugify==8.0.4
# via code-annotations
pytz==2024.1
pytz==2024.2
# via
# -r requirements/base.in
# event-tracking
# tincan
pyyaml==6.0.2
# via code-annotations
redis==5.0.8
redis==5.1.1
# via django-redis
requests==2.32.3
# via
Expand All @@ -165,7 +165,6 @@ six==1.16.0
# via
# edx-ccx-keys
# event-tracking
# isodate
# python-dateutil
sqlparse==0.5.1
# via django
Expand All @@ -180,9 +179,11 @@ tincan==1.0.0
# via -r requirements/base.in
typing-extensions==4.12.2
# via edx-opaque-keys
tzdata==2024.1
# via celery
urllib3==2.2.2
tzdata==2024.2
# via
# celery
# kombu
urllib3==2.2.3
# via requests
vine==5.1.0
# via
Expand Down
12 changes: 6 additions & 6 deletions requirements/ci.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,25 @@ chardet==5.2.0
# via tox
colorama==0.4.6
# via tox
distlib==0.3.8
distlib==0.3.9
# via virtualenv
filelock==3.15.4
filelock==3.16.1
# via
# tox
# virtualenv
packaging==24.1
# via
# pyproject-api
# tox
platformdirs==4.2.2
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.0
tox==4.22.0
# via -r requirements/ci.in
virtualenv==20.26.3
virtualenv==20.26.6
# via tox
Loading

0 comments on commit 33d9651

Please sign in to comment.