From 1bc9c186c9b2bd0db443f9a9170572b3f2bff348 Mon Sep 17 00:00:00 2001 From: edX requirements bot Date: Tue, 24 Aug 2021 08:23:11 +0500 Subject: [PATCH 1/2] chore: Updating Python Requirements --- requirements/dev.txt | 10 ++++++---- requirements/test.txt | 8 +++++--- requirements/travis.txt | 2 +- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/requirements/dev.txt b/requirements/dev.txt index 9267208b..df7a5d1d 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -10,7 +10,7 @@ amqp==2.6.1 # via # -r requirements/test.txt # kombu -astroid==2.6.6 +astroid==2.7.2 # via # -r requirements/test.txt # pylint @@ -147,7 +147,9 @@ pip-tools==6.2.0 # -r requirements/pip-tools.txt platformdirs==2.2.0 # via + # -r requirements/test.txt # -r requirements/travis.txt + # pylint # virtualenv pluggy==0.13.1 # via @@ -167,7 +169,7 @@ pycodestyle==2.7.0 # -r requirements/test.txt pygments==2.10.0 # via sphinx -pylint==2.9.6 +pylint==2.10.2 # via # -r requirements/test.txt # edx-lint @@ -247,7 +249,7 @@ sqlparse==0.4.1 # via # -r requirements/test.txt # django -stevedore==3.3.0 +stevedore==3.4.0 # via # -r requirements/test.txt # code-annotations @@ -267,7 +269,7 @@ tomli==1.2.1 # via # -r requirements/pip-tools.txt # pep517 -tox==3.24.2 +tox==3.24.3 # via # -r requirements/dev.in # -r requirements/travis.txt diff --git a/requirements/test.txt b/requirements/test.txt index 00a22fe3..d106e8cb 100644 --- a/requirements/test.txt +++ b/requirements/test.txt @@ -7,7 +7,7 @@ # via # -r requirements/base.txt # kombu -astroid==2.6.6 +astroid==2.7.2 # via # pylint # pylint-celery @@ -60,13 +60,15 @@ packaging==21.0 # via pytest pbr==5.6.0 # via stevedore +platformdirs==2.2.0 + # via pylint pluggy==0.13.1 # via pytest py==1.10.0 # via pytest pycodestyle==2.7.0 # via -r requirements/test.in -pylint==2.9.6 +pylint==2.10.2 # via # edx-lint # pylint-celery @@ -106,7 +108,7 @@ sqlparse==0.4.1 # via # -r requirements/base.txt # django -stevedore==3.3.0 +stevedore==3.4.0 # via code-annotations text-unidecode==1.3 # via python-slugify diff --git a/requirements/travis.txt b/requirements/travis.txt index 4f63bf9e..9ec5b18a 100644 --- a/requirements/travis.txt +++ b/requirements/travis.txt @@ -40,7 +40,7 @@ six==1.16.0 # virtualenv toml==0.10.2 # via tox -tox==3.24.2 +tox==3.24.3 # via # -r requirements/travis.in # tox-battery From 9a39289b6a1da013631d9a343b4c538e3622d760 Mon Sep 17 00:00:00 2001 From: Usama Sadiq Date: Tue, 24 Aug 2021 11:08:13 +0500 Subject: [PATCH 2/2] fix: fix the new pylint warnings --- eventtracking/tracker.py | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/eventtracking/tracker.py b/eventtracking/tracker.py index 124ed315..a154770a 100644 --- a/eventtracking/tracker.py +++ b/eventtracking/tracker.py @@ -85,7 +85,7 @@ def resolve_context(self): Create a new dictionary that corresponds to the union of all of the contexts that have been entered but not exited at this point. """ - merged = dict() + merged = {} for context in self.located_context.values(): merged.update(context) return merged diff --git a/setup.py b/setup.py index d7c85fbe..73073e06 100644 --- a/setup.py +++ b/setup.py @@ -37,7 +37,7 @@ def load_requirements(*requirements_paths): requirements = set() for path in requirements_paths: requirements.update( - line.strip() for line in open(path).readlines() # pylint: disable=consider-using-with + line.strip() for line in open(path, encoding="utf8").readlines() # pylint: disable=consider-using-with if is_requirement(line) ) return list(requirements)