Skip to content

Commit

Permalink
Merge branch 'tonybaloney:master' into fix_aggregate_in_windows
Browse files Browse the repository at this point in the history
  • Loading branch information
devdanzin authored Aug 24, 2023
2 parents 9b5b374 + acf39d2 commit 018d4d2
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 018d4d2

Please sign in to comment.