misc: fix spelling mistakes detected by Typos workflow

This commit is contained in:
tfuxu 2023-01-18 15:26:05 +01:00
parent c5e06c6b59
commit 484d2e6cca
No known key found for this signature in database
GPG key ID: 79CFC3B9B31C098A
3 changed files with 4 additions and 4 deletions

View file

@ -34,7 +34,7 @@ def rgb_to_hash(rgb) -> [str, float]:
"""
This function converts rgb or rgba-formatted color code to an hexadecimal code.
Alpha channel from RGBA color codes is passed without any convertion
Alpha channel from RGBA color codes is passed without any conversion
as a second return variable and is completely ignored in hexadecimal codes
to remain compliant with web stantards.
"""

View file

@ -103,7 +103,7 @@ class CLI:
monet_parser = subparsers.add_parser("monet", help="generate Material You preset from an image")
monet_parser.add_argument("-n", "--preset-name", help="name for a generated preset", required=True)
monet_parser.add_argument("-p", "--image-path", help="abosulte path to image", required=True)
monet_parser.add_argument("-p", "--image-path", help="absolute path to image", required=True)
monet_parser.add_argument("--tone", default=20, help="a tone for colors (default: 20)")
monet_parser.add_argument("--theme", choices=["light", "dark"], default="light", help="choose whatever it should be a light or dark theme (default: light)")
monet_parser.add_argument("-j", "--json", action="store_true", help="print out a result of this command directly in JSON format")

View file

@ -20,8 +20,8 @@ import os
def list_po():
files = []
for _, _, filesname in os.walk("po"):
for file in filesname:
for _, _, filenames in os.walk("po"):
for file in filenames:
if file.endswith(".po"):
files.append(file.strip(".po"))
return files