Skip to content

Commit

Permalink
chore: python requirements update (#4362)
Browse files Browse the repository at this point in the history
* chore: python requirements update

* test: some quality updates
  • Loading branch information
edx-requirements-bot authored Jun 3, 2024
1 parent ae8dd7b commit c2d71d1
Show file tree
Hide file tree
Showing 10 changed files with 62 additions and 64 deletions.
2 changes: 1 addition & 1 deletion course_discovery/apps/api/v1/views/courses.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def get_object(self):
elif self.course_uuid_regex.match(key):
filter_key = 'uuid'

filter_kwargs = {filter_key: key}
filter_kwargs = {filter_key: key} # pylint: disable=possibly-used-before-assignment
obj = get_object_or_404(queryset, **filter_kwargs)

# May raise a permission denied
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ def test_ingest_handles_draft(self, official_exists, draft_exists, partner_uses_
draft_run = CourseRun.objects.create(course=draft_course, key=run_key, type=audit_run_type, draft=True)
draft_course.canonical_course_run = draft_run
draft_course.save()
draft_course.authoring_organizations.add(org)
draft_course.authoring_organizations.add(org) # pylint: disable=possibly-used-before-assignment
official_course_kwargs = {'draft_version': draft_course}
official_run_kwargs = {'draft_version': draft_run}
all_courses.add(draft_course)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def add_arguments(self, parser):
help='Product source to be used for mapping external organization code to internal organization code'
)

def handle(self, *args, **options):
def handle(self, *args, **options): # pylint: disable=too-many-statements
input_csv = options.get('input_csv')
output_csv = options.get('output_csv')
auth_token = options.get('auth_token')
Expand All @@ -123,7 +123,7 @@ def handle(self, *args, **options):
)
else:
input_reader = []

products = []
if dev_input_json:
products = self.mock_product_details(dev_input_json)
elif auth_token:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def handle(self, *args, **options):
file_reader = DictReader(open(csv_file_path, 'r')) # pylint: disable=consider-using-with
logger.info(f'Reading csv file from path: {csv_file_path}')
else:
file = csv_from_config.csv_file if csv_from_config.is_enabled() else None
file = csv_from_config.csv_file if csv_from_config.is_enabled() else None # pylint: disable=possibly-used-before-assignment
file_reader = DictReader(file.open('r'))
logger.info(f'Reading csv file from config MigrateCourseSlugConfiguration {csv_from_config.csv_file}')

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ def create_blocked_course_run(self, **kwargs):
return course

def attach_published_course_run(self, course, run_type="archived", **kwargs):
course_start = course_end = ''
if run_type == 'current and ends within two weeks':
course_start = self.ONE_MONTH_AGO
course_end = self.TOMORROW
Expand Down Expand Up @@ -569,6 +570,7 @@ class TestAlgoliaProxyProgram(TestAlgoliaProxyWithEdxPartner):
IN_TWO_MONTHS = datetime.datetime.now(UTC) + datetime.timedelta(days=60)

def attach_course_run(self, course, availability="Archived"):
course_start = course_end = ''
if availability == 'none':
return CourseRunFactory(
course=course,
Expand Down
8 changes: 4 additions & 4 deletions requirements/docs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ babel==2.15.0
# sphinx
beautifulsoup4==4.12.3
# via pydata-sphinx-theme
certifi==2024.2.2
certifi==2024.6.2
# via
# elasticsearch
# requests
Expand Down Expand Up @@ -62,7 +62,7 @@ python-dateutil==2.9.0.post0
# via elasticsearch-dsl
pytz==2024.1
# via babel
requests==2.31.0
requests==2.32.3
# via sphinx
six==1.16.0
# via
Expand Down Expand Up @@ -93,11 +93,11 @@ sphinxcontrib-qthelp==1.0.3
# via sphinx
sphinxcontrib-serializinghtml==1.1.5
# via sphinx
typing-extensions==4.11.0
typing-extensions==4.12.1
# via pydata-sphinx-theme
urllib3==1.26.18
# via
# elasticsearch
# requests
zipp==3.18.1
zipp==3.19.1
# via importlib-metadata
58 changes: 28 additions & 30 deletions requirements/local.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,9 @@ asgiref==3.8.1
# django
# django-cors-headers
# django-countries
# django-simple-history
asn1crypto==1.5.1
# via snowflake-connector-python
astroid==3.1.0
astroid==3.2.2
# via
# pylint
# pylint-celery
Expand Down Expand Up @@ -74,9 +73,9 @@ boltons==21.0.0
# face
# glom
# semgrep
boto3==1.34.103
boto3==1.34.117
# via django-ses
botocore==1.34.103
botocore==1.34.117
# via
# boto3
# s3transfer
Expand All @@ -96,7 +95,7 @@ celery==5.4.0
# via
# -c requirements/constraints.txt
# taxonomy-connector
certifi==2024.2.2
certifi==2024.6.2
# via
# elasticsearch
# requests
Expand Down Expand Up @@ -146,7 +145,7 @@ colorama==0.4.6
# tox
contentful==2.1.1
# via -r requirements/base.in
coverage[toml]==7.5.1
coverage[toml]==7.5.3
# via
# -r requirements/test.in
# pytest-cov
Expand Down Expand Up @@ -196,6 +195,7 @@ distlib==0.3.8
# django-nine
# django-parler
# django-ses
# django-simple-history
# django-solo
# django-stdimage
# django-storages
Expand All @@ -219,7 +219,7 @@ distlib==0.3.8
# social-auth-app-django
# taxonomy-connector
# xss-utils
django-admin-sortable2==2.1.10
django-admin-sortable2==2.2.1
# via -r requirements/base.in
django-appconf==1.0.6
# via django-compressor
Expand Down Expand Up @@ -292,9 +292,9 @@ django-object-actions==4.2.0
# taxonomy-connector
django-parler==2.3
# via -r requirements/base.in
django-ses==4.0.0
django-ses==4.1.0
# via taxonomy-connector
django-simple-history==3.5.0
django-simple-history==3.7.0
# via -r requirements/base.in
django-solo==2.2.0
# via
Expand Down Expand Up @@ -368,7 +368,7 @@ edx-django-release-util==1.4.0
# via -r requirements/base.in
edx-django-sites-extensions==4.2.0
# via -r requirements/base.in
edx-django-utils==5.13.0
edx-django-utils==5.14.2
# via
# -r requirements/base.in
# django-config-models
Expand Down Expand Up @@ -429,7 +429,7 @@ face==22.0.0
# via glom
factory-boy==3.3.0
# via -r requirements/test.in
faker==25.1.0
faker==25.3.0
# via factory-boy
fastavro==1.9.4
# via openedx-events
Expand All @@ -450,7 +450,7 @@ glom==22.1.0
# via semgrep
google-api-core==2.19.0
# via google-api-python-client
google-api-python-client==2.129.0
google-api-python-client==2.131.0
# via -r requirements/base.in
google-auth==2.29.0
# via
Expand All @@ -467,7 +467,7 @@ google-auth-oauthlib==1.2.0
# via gspread
googleapis-common-protos==1.63.0
# via google-api-core
gspread==6.1.0
gspread==6.1.2
# via -r requirements/base.in
h11==0.14.0
# via wsproto
Expand All @@ -491,7 +491,7 @@ importlib-metadata==6.11.0
# -r requirements/base.in
# markdown
# sphinx
importlib-resources==5.13.0
importlib-resources==6.4.0
# via pycountry
inflection==0.5.1
# via drf-yasg
Expand Down Expand Up @@ -519,7 +519,7 @@ kombu==5.3.7
# via celery
libsass==0.23.0
# via django-libsass
lxml[html-clean,html_clean]==5.2.1
lxml[html-clean,html_clean]==5.2.2
# via
# -r requirements/base.in
# edx-i18n-tools
Expand All @@ -543,7 +543,7 @@ multidict==6.0.5
# yarl
mysqlclient==2.2.4
# via -r requirements/test.in
newrelic==9.9.0
newrelic==9.10.0
# via edx-django-utils
oauthlib==3.2.2
# via
Expand Down Expand Up @@ -586,7 +586,7 @@ pillow==9.5.0
# -r requirements/base.in
# cairosvg
# django-stdimage
platformdirs==4.2.1
platformdirs==4.2.2
# via
# pylint
# snowflake-connector-python
Expand All @@ -599,7 +599,7 @@ pluggy==1.5.0
# tox
polib==1.2.0
# via edx-i18n-tools
prompt-toolkit==3.0.43
prompt-toolkit==3.0.45
# via click-repl
proto-plus==1.23.0
# via google-api-core
Expand All @@ -618,7 +618,7 @@ pyasn1-modules==0.4.0
# via google-auth
pycodestyle==2.11.1
# via -r requirements/test.in
pycountry==23.12.11
pycountry==24.6.1
# via -r requirements/base.in
pycparser==2.22
# via cffi
Expand All @@ -638,7 +638,7 @@ pyjwt[crypto]==2.8.0
# simple-salesforce
# snowflake-connector-python
# social-auth-core
pylint==3.1.0
pylint==3.2.2
# via
# edx-lint
# pylint-celery
Expand Down Expand Up @@ -672,7 +672,7 @@ pyrsistent==0.20.0
# via jsonschema
pysocks==1.7.1
# via urllib3
pytest==8.2.0
pytest==8.2.1
# via
# -r requirements/test.in
# pytest-cov
Expand Down Expand Up @@ -761,7 +761,7 @@ requests==2.31.0
# social-auth-core
# sphinx
# zeep
requests-file==2.0.0
requests-file==2.1.0
# via zeep
requests-oauthlib==2.0.0
# via
Expand Down Expand Up @@ -817,7 +817,7 @@ sniffio==1.3.1
# via trio
snowballstemmer==2.2.0
# via sphinx
snowflake-connector-python==3.10.0
snowflake-connector-python==3.10.1
# via -r requirements/base.in
social-auth-app-django==5.4.1
# via
Expand Down Expand Up @@ -862,8 +862,6 @@ stevedore==5.2.0
# code-annotations
# edx-django-utils
# edx-opaque-keys
strenum==0.4.15
# via gspread
taxonomy-connector==1.50.0
# via -r requirements/base.in
testfixtures==8.2.0
Expand Down Expand Up @@ -897,7 +895,7 @@ trio==0.24.0
# trio-websocket
trio-websocket==0.11.1
# via selenium
typing-extensions==4.11.0
typing-extensions==4.12.1
# via
# asgiref
# astroid
Expand All @@ -913,7 +911,7 @@ tzdata==2024.1
# via
# backports-zoneinfo
# celery
ujson==5.9.0
ujson==5.10.0
# via python-lsp-jsonrpc
unicodecsv==0.14.1
# via -r requirements/base.in
Expand All @@ -935,11 +933,11 @@ vine==5.1.0
# amqp
# celery
# kombu
virtualenv==20.26.1
virtualenv==20.26.2
# via tox
walrus==0.9.3
# via edx-event-bus-redis
wcmatch==8.5.1
wcmatch==8.5.2
# via semgrep
wcwidth==0.2.13
# via prompt-toolkit
Expand All @@ -955,7 +953,7 @@ yarl==1.9.4
# via aiohttp
zeep==4.2.1
# via simple-salesforce
zipp==3.18.1
zipp==3.19.1
# via
# importlib-metadata
# importlib-resources
Expand Down
2 changes: 1 addition & 1 deletion requirements/pip.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ wheel==0.43.0
# The following packages are considered to be unsafe in a requirements file:
pip==24.0
# via -r requirements/pip.in
setuptools==69.5.1
setuptools==70.0.0
# via -r requirements/pip.in
2 changes: 1 addition & 1 deletion requirements/pip_tools.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ tomli==2.0.1
# pip-tools
wheel==0.43.0
# via pip-tools
zipp==3.18.1
zipp==3.19.1
# via importlib-metadata

# The following packages are considered to be unsafe in a requirements file:
Expand Down
Loading

0 comments on commit c2d71d1

Please sign in to comment.