Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 16 additions & 14 deletions src/krux/display.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,20 +52,22 @@

ASIAN_MIN_CODEPOINT = 12288

# Splash will use horizontally-centered text plots. Uses Thin spaces to help with alignment
SPLASH = [
"██" + THIN_SPACE * 3,
"██" + THIN_SPACE * 3,
"██" + THIN_SPACE * 3,
"██████" + THIN_SPACE * 3,
"██" + THIN_SPACE * 3,
THIN_SPACE + "██" + THIN_SPACE * 2 + "██",
"██" + THIN_SPACE + "██",
"████" + THIN_SPACE,
"██" + THIN_SPACE + "██",
THIN_SPACE + "██" + THIN_SPACE * 2 + "██",
THIN_SPACE * 2 + "██" + THIN_SPACE * 3 + "██",
]
human_friendly_splash = """
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will throw an warning on pylint:

src/krux/display.py:55:0: C0103: Constant name "human_friendly_splash" doesn't conform to UPPER_CASE naming style (invalid-name)
Suggested change
human_friendly_splash = """
SPLASH = """

██
██
██
██████
██
██ ██
██ ██
████
██ ██
██ ██
██ ██
"""
# Reformat as a list of strings w/fixed length padding to preserve the shape
# when it's rendered as horizontally centered individual lines.
SPLASH = ["{:<9}".format(row) for row in human_friendly_splash.split("\n") if row != '']
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
SPLASH = ["{:<9}".format(row) for row in human_friendly_splash.split("\n") if row != '']
SPLASH = ["{:<9}".format(row) for row in SPLASH.split("\n") if row != '']



class Display:
Expand Down
Loading