Commit 3bde493f authored by Fabien  MAREUIL's avatar Fabien MAREUIL Committed by Hervé MENAGER
Browse files

new flake8 formatting

cherry-picked from target-centric branch
solved conflicts on ippisite/ippidb/urls.py
(target-centric specific URLs)
parent 8ba1d21e
Pipeline #30887 failed with stages
in 20 minutes and 21 seconds
......@@ -535,9 +535,9 @@ def run_le_lle_plot(self: MonitorTask):
:type self: MonitorTask
"""
self.update_state(state=states.STARTED)
self.write(std_out=f"Starting computing LE-LLE plot")
self.write(std_out="Starting computing LE-LLE plot")
generate_le_lle_plot()
self.write(std_out=f"Finished computing LE-LLE plot")
self.write(std_out="Finished computing LE-LLE plot")
@task(base=MonitorTask, bind=True)
......@@ -549,9 +549,9 @@ def run_pca_plot(self: MonitorTask):
:type self: MonitorTask
"""
self.update_state(state=states.STARTED)
self.write(std_out=f"Starting computing PCA plot")
self.write(std_out="Starting computing PCA plot")
generate_pca_plot()
self.write(std_out=f"Finished computing PCA plot")
self.write(std_out="Finished computing PCA plot")
def launch_validate_contributions(contribution_ids: List[int]):
......
......@@ -141,8 +141,8 @@ def bootstrap_core(object):
# print form's error which are not related to a field but the form itself
form = object
for field in form:
for l in bootstrap_core(field):
ret.append(l)
for el in bootstrap_core(field):
ret.append(el)
elif isinstance(object, ErrorList):
# print errors in a bootstrap way
for error in object:
......
......@@ -230,7 +230,7 @@ class ContributionE2ETestCase(TestCase):
self.assertEqual(
response.url,
reverse("contribution-detail", kwargs={"contribution_pk": 1}),
f"wrong final URL, should be the contribution permanent URL",
"wrong final URL, should be the contribution permanent URL",
)
def _generate_wizard_data(self, entry_data):
......
......@@ -10,14 +10,15 @@ For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
from django.utils.translation import gettext_lazy
import os
# set matplotlib backend
import matplotlib
matplotlib.use("agg") # noqa: E402 BLK100
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
from django.utils.translation import gettext_lazy
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment