Skip to content

Commit

Permalink
Revert the flynt changes
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss committed Jul 14, 2022
1 parent 7938d9e commit 6a53be1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/wily/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
__version__,
"-V",
"--version",
message=f"🦊 %(prog)s, {_('version')} %(version)s",
message="\U0001F98A %(prog)s, {version} %(version)s".format(version=_("version")),
help=_("Show the version and exit."),
)
@click.help_option(help=_("Show this message and exit."))
Expand Down
8 changes: 6 additions & 2 deletions src/wily/commands/diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,15 @@ def diff(config, files, metrics, changes_only=True, detail=True, revision=None):
if metric.type in (int, float) and new != "-" and current != "-":
if current > new:
metrics_data.append(
f"{current:n} -> [{BAD_COLORS[metric.measure]}m{new:n}"
"{0:n} -> \u001b[{2}m{1:n}\u001b[0m".format(
current, new, BAD_COLORS[metric.measure]
)
)
elif current < new:
metrics_data.append(
f"{current:n} -> [{GOOD_COLORS[metric.measure]}m{new:n}"
"{0:n} -> \u001b[{2}m{1:n}\u001b[0m".format(
current, new, GOOD_COLORS[metric.measure]
)
)
else:
metrics_data.append(f"{current:n} -> {new:n}")
Expand Down

0 comments on commit 6a53be1

Please sign in to comment.