Skip to content

Commit

Permalink
Apply pre-commit fix
Browse files Browse the repository at this point in the history
From the artifact of the previous workflow run
  • Loading branch information
geo-ghci-int[bot] committed Jan 7, 2025
1 parent 32be8bb commit ec9ce2c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions bashcolor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

# see also: http://misc.flogisoft.com/bash/tip_colors_and_formatting


from typing import Optional

RESET = 0
Expand Down Expand Up @@ -100,14 +99,18 @@ def print_colors() -> None:
color_pivot.append(256)
color_pivot_start = color_pivot[:-1]
color_pivot_end = color_pivot[1:]
color_table_list = [range(cs, ce) for cs, ce in zip(color_pivot_start, color_pivot_end)]
color_table_list = [
range(cs, ce) for cs, ce in zip(color_pivot_start, color_pivot_end)
]

for color_table in color_table_list:
text = ""
for color in color_table:
color_string = str(color)
padding = "".join([" " for e in range(3 - len(color_string))])
text += colorize(f" {padding}{color_string} ", background_256=color, with_end=False)
text += colorize(
f" {padding}{color_string} ", background_256=color, with_end=False
)
print(text + colorize("", background=DEFAULT))


Expand Down

0 comments on commit ec9ce2c

Please sign in to comment.