From ec2624fb528d0695237c4d3fdf8e3745490c647e Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Mon, 6 Sep 2021 10:57:00 +0000 Subject: [PATCH] =?UTF-8?q?=E2=AC=86=EF=B8=8F(project)=20upgrade=20python?= =?UTF-8?q?=20dependencies?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Upgrades: - Django from 3.2 to 3.2.7 - Jinja2 from 2.11.3 to 3.0.1 - flake8 from 3.9.1 to 3.9.2 - hypothesis from 6.10.0 to 6.18.0 - isort from 5.8.0 to 5.9.3 - mkdocs from 1.1.2 to 1.2.2 - mkdocs-material from 7.1.2 to 7.2.6 - psycopg2-binary to 2.8.6 to 2.9.1 - pyfakefs from 4.4.0 to 4.5.1 - pylint from 2.7.4 to 2.10.2 - pylint-django from 2.4.3 to 2.4.4 - pytest from 6.2.3 to 6.2.5 - pytest-cov from 2.11.1 to 2.12.1 - pytest-django from 4.2.0 to 4.4.0 - twine from 3.4.1 to 3.4.2 --- renovate.json | 2 ++ src/marion/marion/utils.py | 4 +++- src/marion/setup.cfg | 32 ++++++++++++++++---------------- 3 files changed, 21 insertions(+), 17 deletions(-) diff --git a/renovate.json b/renovate.json index 0f7f384..d1c6526 100644 --- a/renovate.json +++ b/renovate.json @@ -2,6 +2,8 @@ "extends": [ "github>openfun/renovate-configuration" ], + "commitMessagePrefix": "⬆️(project)", + "commitMessageAction": "upgrade", "packageRules": [ { "enabled": false, diff --git a/src/marion/marion/utils.py b/src/marion/marion/utils.py index 6a980b6..42a5033 100644 --- a/src/marion/marion/utils.py +++ b/src/marion/marion/utils.py @@ -35,7 +35,9 @@ def static_file_fetcher(url, *args, **kwargs): path = url_path.replace(settings.STATIC_URL, "", 1) try: - data["file_obj"] = open(find(path), "rb") + data["file_obj"] = open( # pylint: disable=consider-using-with + find(path), "rb" + ) # A SuspiciousFileOperation is raised by Django if the file has been # found outside referenced static file paths. In this case, we ignore # this error and fallback to the default Weasyprint fetcher for files diff --git a/src/marion/setup.cfg b/src/marion/setup.cfg index e9700f9..067a0c7 100644 --- a/src/marion/setup.cfg +++ b/src/marion/setup.cfg @@ -35,26 +35,26 @@ dev = bandit==1.7.0 black==20.8b1 factory_boy==3.2.0 - flake8==3.9.1 - hypothesis[django]==6.10.0 - isort==5.8.0 - Jinja2==2.11.3 - mkdocs==1.1.2 - mkdocs-material==7.1.2 - mkdocstrings==0.15.0 + flake8==3.9.2 + hypothesis[django]==6.18.0 + isort==5.9.3 + Jinja2==3.0.1 + mkdocs==1.2.2 + mkdocs-material==7.2.6 + mkdocstrings==0.15.2 pdfminer.six==20201018 - pyfakefs==4.4.0 - pylint==2.7.4 - pylint-django==2.4.3 - pytest==6.2.3 - pytest-cov==2.11.1 - pytest-django==4.2.0 + pyfakefs==4.5.1 + pylint==2.10.2 + pylint-django==2.4.4 + pytest==6.2.5 + pytest-cov==2.12.1 + pytest-django==4.4.0 sandbox = - Django==3.2 + Django==3.2.7 django-configurations==2.2 - psycopg2-binary==2.8.6 + psycopg2-binary==2.9.1 ci = - twine==3.4.1 + twine==3.4.2 [bdist_wheel] universal = 1