Skip to content

Commit

Permalink
Merge branch 'master' into names_in_list_metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
devdanzin committed Aug 24, 2023
2 parents 14cb2f9 + acf39d2 commit 64b95f2
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/wily/commands/diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,15 +140,11 @@ def diff(
if metric.metric_type in (int, float) and new != "-" and current != "-":
if current > new: # type: ignore
metrics_data.append(
"{0:n} -> \u001b[{2}m{1:n}\u001b[0m".format(
current, new, BAD_COLORS[metric.measure]
)
f"{current:n} -> \u001b[{BAD_COLORS[metric.measure]}m{new:n}\u001b[0m"
)
elif current < new: # type: ignore
metrics_data.append(
"{0:n} -> \u001b[{2}m{1:n}\u001b[0m".format(
current, new, GOOD_COLORS[metric.measure]
)
f"{current:n} -> \u001b[{GOOD_COLORS[metric.measure]}m{new:n}\u001b[0m"
)
else:
metrics_data.append(f"{current:n} -> {new:n}")
Expand Down

0 comments on commit 64b95f2

Please sign in to comment.