Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Upgrade Python requirements #342

Merged
merged 2 commits into from
Sep 30, 2024
Merged
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
8 changes: 4 additions & 4 deletions opaque_keys/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class OpaqueKeyMetaclass(ABCMeta):
Metaclass for :class:`OpaqueKey`. Sets the default value for the values in ``KEY_FIELDS`` to
``None``.
"""
def __new__(mcs, name, bases, attrs): # pylint: disable=arguments-differ
def __new__(mcs, name, bases, attrs):
if '__slots__' not in attrs:
for field in attrs.get('KEY_FIELDS', []):
attrs.setdefault(field, None)
Expand Down Expand Up @@ -95,9 +95,9 @@ class constructor will not validate any of the ``KEY_FIELDS`` arguments, and wil
"""
__slots__ = ('_initialized', 'deprecated')

KEY_FIELDS: tuple[str, ...]
CANONICAL_NAMESPACE: str
KEY_TYPE: str
KEY_FIELDS: tuple[str, ...] # pylint: disable=declare-non-slot
CANONICAL_NAMESPACE: str # pylint: disable=declare-non-slot
KEY_TYPE: str # pylint: disable=declare-non-slot
NAMESPACE_SEPARATOR = ':'
CHECKED_INIT: bool = True

Expand Down
4 changes: 2 additions & 2 deletions opaque_keys/edx/tests/test_library_locators.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,10 @@ def test_for_branch(self):

branch2 = "br2"
branch2_key = lib_key.for_branch(branch2)
self.assertEqual(branch2_key.branch, branch2) # pylint: disable=no-member
self.assertEqual(branch2_key.branch, branch2)

normal_branch = lib_key.for_branch(None)
self.assertEqual(normal_branch.branch, None) # pylint: disable=no-member
self.assertEqual(normal_branch.branch, None)

def test_version_only_lib_key(self):
version_only_lib_key = LibraryLocator(version_guid=ObjectId('519665f6223ebd6980884f2b'))
Expand Down
2 changes: 1 addition & 1 deletion opaque_keys/tests/strategies.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ def _instances_of_course_locator(cls, **kwargs):
org=kwargs.get('org', deprecated_course_ids()),
course=kwargs.get('course', deprecated_course_ids()),
run=kwargs.get('run', deprecated_course_ids()),
branch=kwargs.get('branch', deprecated_course_ids() | strategies.none()), # pylint: disable=unsupported-binary-operation
branch=kwargs.get('branch', deprecated_course_ids() | strategies.none()),
deprecated=strategies.just(True),
) | strategies.builds(
cls,
Expand Down
5 changes: 3 additions & 2 deletions pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
# SERIOUSLY.
#
# ------------------------------
# Generated by edx-lint version: 5.3.4
# Generated by edx-lint version: 5.4.0
# ------------------------------
[MASTER]
ignore =
Expand Down Expand Up @@ -287,6 +287,7 @@ disable =
illegal-waffle-usage,

logging-fstring-interpolation,
too-many-positional-arguments,

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

# 6b646c624a39204ce807909aabd80bf4c7d28116
# 4b58a7b1a464fe67710e1c2b4aa0e5712cb65f1b
3 changes: 3 additions & 0 deletions pylintrc_tweaks
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[MASTER]
load-plugins = edx_lint.pylint

[MESSAGES CONTROL]
disable+=
too-many-positional-arguments,
2 changes: 1 addition & 1 deletion requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ dnspython==2.6.1
# via pymongo
pbr==6.1.0
# via stevedore
pymongo==4.8.0
pymongo==4.9.1
# via -r requirements/base.in
stevedore==5.3.0
# via -r requirements/base.in
Expand Down
10 changes: 5 additions & 5 deletions requirements/ci.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,23 @@ coverage==7.6.1
# via -r requirements/ci.in
distlib==0.3.8
# via virtualenv
filelock==3.16.0
filelock==3.16.1
# via
# tox
# virtualenv
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
virtualenv==20.26.4
virtualenv==20.26.6
# via tox
22 changes: 11 additions & 11 deletions requirements/dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ alabaster==1.0.0
# via
# -r requirements/doc.txt
# sphinx
astroid==3.2.4
astroid==3.3.4
# via
# -r requirements/doc.txt
# pylint
Expand Down Expand Up @@ -77,7 +77,7 @@ coverage[toml]==7.6.1
# pytest-cov
ddt==1.7.2
# via -r requirements/doc.txt
dill==0.3.8
dill==0.3.9
# via
# -r requirements/doc.txt
# pylint
Expand All @@ -101,12 +101,12 @@ execnet==2.1.1
# via
# -r requirements/doc.txt
# pytest-xdist
filelock==3.16.0
filelock==3.16.1
# via
# -r requirements/ci.txt
# tox
# virtualenv
hypothesis==6.112.1
hypothesis==6.112.2
# via -r requirements/doc.txt
idna==3.10
# via
Expand Down Expand Up @@ -166,7 +166,7 @@ pbr==6.1.0
# stevedore
pip-tools==7.4.1
# via -r requirements/pip-tools.txt
platformdirs==4.3.3
platformdirs==4.3.6
# via
# -r requirements/ci.txt
# -r requirements/doc.txt
Expand All @@ -192,7 +192,7 @@ pygments==2.18.0
# pydata-sphinx-theme
# readme-renderer
# sphinx
pylint==3.2.7
pylint==3.3.1
# via
# -r requirements/doc.txt
# edx-lint
Expand All @@ -212,13 +212,13 @@ pylint-plugin-utils==0.8.2
# -r requirements/doc.txt
# pylint-celery
# pylint-django
pymongo==4.8.0
pymongo==4.9.1
# via -r requirements/doc.txt
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
Expand Down Expand Up @@ -305,7 +305,7 @@ tomlkit==0.13.2
# via
# -r requirements/doc.txt
# pylint
tox==4.18.1
tox==4.20.0
# via -r requirements/ci.txt
typing-extensions==4.12.2
# via
Expand All @@ -316,7 +316,7 @@ urllib3==2.2.3
# via
# -r requirements/doc.txt
# requests
virtualenv==20.26.4
virtualenv==20.26.6
# via
# -r requirements/ci.txt
# tox
Expand Down
12 changes: 6 additions & 6 deletions requirements/django-test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
# make upgrade
#
astroid==3.2.4
astroid==3.3.4
# via
# -r requirements/test.txt
# pylint
Expand Down Expand Up @@ -33,7 +33,7 @@ coverage[toml]==7.6.1
# pytest-cov
ddt==1.7.2
# via -r requirements/test.txt
dill==0.3.8
dill==0.3.9
# via
# -r requirements/test.txt
# pylint
Expand All @@ -47,7 +47,7 @@ execnet==2.1.1
# via
# -r requirements/test.txt
# pytest-xdist
hypothesis==6.112.1
hypothesis==6.112.2
# via -r requirements/test.txt
iniconfig==2.0.0
# via
Expand Down Expand Up @@ -85,7 +85,7 @@ pbr==6.1.0
# via
# -r requirements/test.txt
# stevedore
platformdirs==4.3.3
platformdirs==4.3.6
# via
# -r requirements/test.txt
# pylint
Expand All @@ -95,7 +95,7 @@ pluggy==1.5.0
# pytest
pycodestyle==2.12.1
# via -r requirements/test.txt
pylint==3.2.7
pylint==3.3.1
# via
# -r requirements/test.txt
# edx-lint
Expand All @@ -115,7 +115,7 @@ pylint-plugin-utils==0.8.2
# -r requirements/test.txt
# pylint-celery
# pylint-django
pymongo==4.8.0
pymongo==4.9.1
# via -r requirements/test.txt
pytest==8.3.3
# via
Expand Down
12 changes: 6 additions & 6 deletions requirements/doc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ accessible-pygments==0.0.5
# via pydata-sphinx-theme
alabaster==1.0.0
# via sphinx
astroid==3.2.4
astroid==3.3.4
# via
# -r requirements/test.txt
# pylint
Expand Down Expand Up @@ -47,7 +47,7 @@ coverage[toml]==7.6.1
# pytest-cov
ddt==1.7.2
# via -r requirements/test.txt
dill==0.3.8
dill==0.3.9
# via
# -r requirements/test.txt
# pylint
Expand All @@ -66,7 +66,7 @@ execnet==2.1.1
# via
# -r requirements/test.txt
# pytest-xdist
hypothesis==6.112.1
hypothesis==6.112.2
# via -r requirements/test.txt
idna==3.10
# via requests
Expand Down Expand Up @@ -113,7 +113,7 @@ pbr==6.1.0
# via
# -r requirements/test.txt
# stevedore
platformdirs==4.3.3
platformdirs==4.3.6
# via
# -r requirements/test.txt
# pylint
Expand All @@ -131,7 +131,7 @@ pygments==2.18.0
# pydata-sphinx-theme
# readme-renderer
# sphinx
pylint==3.2.7
pylint==3.3.1
# via
# -r requirements/test.txt
# edx-lint
Expand All @@ -151,7 +151,7 @@ pylint-plugin-utils==0.8.2
# -r requirements/test.txt
# pylint-celery
# pylint-django
pymongo==4.8.0
pymongo==4.9.1
# via -r requirements/test.txt
pytest==8.3.3
# via
Expand Down
2 changes: 1 addition & 1 deletion requirements/pip-tools.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
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.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
12 changes: 6 additions & 6 deletions requirements/test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
# make upgrade
#
astroid==3.2.4
astroid==3.3.4
# via
# pylint
# pylint-celery
Expand All @@ -25,7 +25,7 @@ coverage[toml]==7.6.1
# pytest-cov
ddt==1.7.2
# via -r requirements/test.in
dill==0.3.8
dill==0.3.9
# via pylint
dnspython==2.6.1
# via
Expand All @@ -35,7 +35,7 @@ edx-lint==5.4.0
# via -r requirements/test.in
execnet==2.1.1
# via pytest-xdist
hypothesis==6.112.1
hypothesis==6.112.2
# via -r requirements/test.in
iniconfig==2.0.0
# via pytest
Expand All @@ -59,13 +59,13 @@ pbr==6.1.0
# via
# -r requirements/base.txt
# stevedore
platformdirs==4.3.3
platformdirs==4.3.6
# via pylint
pluggy==1.5.0
# via pytest
pycodestyle==2.12.1
# via -r requirements/test.in
pylint==3.2.7
pylint==3.3.1
# via
# edx-lint
# pylint-celery
Expand All @@ -79,7 +79,7 @@ pylint-plugin-utils==0.8.2
# via
# pylint-celery
# pylint-django
pymongo==4.8.0
pymongo==4.9.1
# via -r requirements/base.txt
pytest==8.3.3
# via
Expand Down