diff --git a/renovate.json b/renovate.json index 0f7f3840..d1c65268 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 6a980b6d..ec687458 100644 --- a/src/marion/marion/utils.py +++ b/src/marion/marion/utils.py @@ -35,7 +35,8 @@ def static_file_fetcher(url, *args, **kwargs): path = url_path.replace(settings.STATIC_URL, "", 1) try: - data["file_obj"] = open(find(path), "rb") + with open(find(path), "rb") as opened_path: + data["file_obj"] = opened_path # 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 e9700f9a..067a0c70 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