Skip to content

Commit

Permalink
pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
tdegeus committed Sep 15, 2022
1 parent 97e0a8e commit ee90629
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions GooseHDF5/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1628,11 +1628,8 @@ def def_row(arg, colors):
raise ValueError(f"Unknown operator {arg[1]}")

if arg[1] == "!=":
return [
colored(arg[0], "cyan", attrs=["bold"]),
arg[1],
colored(arg[2], "cyan", attrs=["bold"]),
]
opts = dict(color="cyan", attrs=["bold"])
return [colored(arg[0], **opts), arg[1], colored(arg[2], **opts)]
if arg[1] == "->":
return [colored(arg[0], "red", attrs=["bold", "concealed"]), arg[1], ""]
if arg[1] == "<-":
Expand All @@ -1641,7 +1638,7 @@ def def_row(arg, colors):
opts = dict(color="magenta", attrs=["bold"])
return [colored(arg[0], **opts), arg[1], colored(arg[2], **opts)]
if arg[1] != "==":
raise ValueError(f"Unknown operator {arg[1]}")
raise ValueError(f"Unknown operator {arg[1]}")

out = prettytable.PrettyTable()
if args.table == "PLAIN_COLUMNS":
Expand Down

0 comments on commit ee90629

Please sign in to comment.