Skip to content

Commit

Permalink
delint
Browse files Browse the repository at this point in the history
Signed-off-by: Sylvain Hellegouarch <sh@defuze.org>
  • Loading branch information
Lawouach committed Feb 27, 2023
1 parent 74c03fd commit c3cc219
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions chaosreport/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def generate_report_header(
for title in experiment_titles:
contributions[title] = [None] * number_of_contributions

for (title, level, contrib) in contributions_by_experiment:
for title, level, contrib in contributions_by_experiment:
idx = contribution_labels.index(contrib)
amount = 0
if level == "high":
Expand Down Expand Up @@ -203,7 +203,7 @@ def generate_report_header(
for tag in tags:
contributions[tag] = [None] * number_of_contributions

for (tag, level, contrib) in contributions_by_tag:
for tag, level, contrib in contributions_by_tag:
idx = contribution_labels.index(contrib)
amount = 0
if level == "high":
Expand Down Expand Up @@ -362,7 +362,7 @@ def get_report_template(
templates = sorted(templates, key=lambda vinfo: vinfo[0])

report_version = report_version.replace("rc1", "-rc1")
for (vinfo, name) in templates:
for vinfo, name in templates:
if semver.match(
report_version,
"<={v}".format(v=semver.format_version(**vinfo._asdict())),
Expand Down Expand Up @@ -411,7 +411,6 @@ def generate_chart_from_prometheus(run: Run, export_format: str):
if data:
result_type = data.get("resultType")
if result_type == "matrix":

chart = pygal.Line(
x_label_rotation=20,
style=DefaultStyle,
Expand Down Expand Up @@ -657,7 +656,7 @@ def add_contribution_model(journal: Journal, export_format: str):

chart = pygal.Pie()
chart.title = "Organization Contributions Impact"
for (contribution, impact) in contributions.items():
for contribution, impact in contributions.items():
value = 0
if impact == "high":
value = 1
Expand Down

0 comments on commit c3cc219

Please sign in to comment.