Skip to content
This repository was archived by the owner on Jan 13, 2024. It is now read-only.

Commit bed797b

Browse files
authored
Merge pull request #20 from DirectiveAthena/v5.1.3_Proposal
Typo fixes
2 parents 0bf215c + ded22bb commit bed797b

File tree

10 files changed

+182
-182
lines changed

10 files changed

+182
-182
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
---
77
## Package Details
88
#### Details and features
9-
A *No Dependency* Python package do display stext styling in a console.
9+
A *No Dependency* Python package do display text styling in a console.
1010
- Next to the full ability to use ANSI styling options, commonly used HTML color names are defined as default colors for Fore- and Background color styling
11-
- The color option are avaible permitting the console can take advantage of RGB ANSI codes
12-
- For a full list of all 140 out of the box available colors, go to [the full documentatio](https://publish.obsidian.md/directiveathena/Content/Programming/AthenaColor/Documentation/HTML+Named+Colors)
11+
- The color option are available permitting the console can take advantage of RGB ANSI codes
12+
- For a full list of all 140 out of the box available colors, go to [the full documentation](https://publish.obsidian.md/directiveathena/Content/Programming/AthenaColor/Documentation/HTML+Named+Colors)
1313
- By using the `RGB` object, you have access to print any RGB color to the console you desire
1414
- Uses a similar syntax to Colorama, but also allows for nested function patterns
1515

Tests/BulkTests.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ def Subtest_Fail(self, ObjectType:type, cases):
2525
ObjectType(value)
2626

2727
def Subtest_ObjectOperation(self, ObjectType:type, args:tuple, kwargs:dict, cases):
28-
for operation, oargs, okwargs,result in cases:
29-
with self.subTest(ObjectType=ObjectType, args=args, kwargs=kwargs, oargs=oargs, okwargs=okwargs,result=result, ):
28+
for operation, oArgs, oKwargs,result in cases:
29+
with self.subTest(ObjectType=ObjectType, args=args, kwargs=kwargs, oArgs=oArgs, oKwargs=oKwargs,result=result, ):
3030
test_object = ObjectType(*args, **kwargs)
31-
self.assertEqual(operation(test_object, *oargs, *okwargs), result)
31+
self.assertEqual(operation(test_object, *oArgs, *oKwargs), result)
3232

3333
def Subtest_ObjectOperationBulk(self, ObjectType:type, cases):
34-
for operation, oargs, okwargs, args, kwargs,result in cases:
35-
with self.subTest(ObjectType=ObjectType, args=args, kwargs=kwargs, operation=operation,oargs=oargs, okwargs=okwargs,result=result, ):
34+
for operation, oArgs, oKwargs, args, kwargs,result in cases:
35+
with self.subTest(ObjectType=ObjectType, args=args, kwargs=kwargs, operation=operation,oArgs=oArgs, oKwargs=oKwargs,result=result, ):
3636
test_object = ObjectType(*args, **kwargs)
37-
self.assertEqual(operation(test_object, *oargs, *okwargs), result)
37+
self.assertEqual(operation(test_object, *oArgs, *oKwargs), result)

Tests/ColorObjects/test_Dunders.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ class DunderTesting(BulkTests):
1919
def test_RGB(self):
2020
objectType=RGB
2121
casesOperation=(
22-
#operation oargs okwargs args kwargs result
22+
#operation oArgs oKwargs args kwargs result
2323
(str, (), {}, (0,0,0), {}, "0;0;0"),
2424
(repr, (), {}, (0,0,0), {}, "RGB(r=0,g=0,b=0)"),
25-
(round, (), {}, (0,0,0), {}, RGB(0,0,0)), # doesn't really impact the RGB or HEX objects, but exsists nonetheless
25+
(round, (), {}, (0,0,0), {}, RGB(0,0,0)), # doesn't really impact the RGB or HEX objects, but exists nonetheless
2626
(bool, (), {}, (0,0,0), {}, False),
2727
(bool, (), {}, (0,0,1), {}, True),
2828
(divmod, (8,), {}, (127,71,54), {}, (RGB(r=15,g=8,b=6), RGB(r=7,g=7,b=6))),
@@ -41,10 +41,10 @@ def test_RGB(self):
4141
def test_HEX(self):
4242
objectType=HEX
4343
casesOperation=(
44-
#operation oargs okwargs args kwargs result
44+
#operation oArgs oKwargs args kwargs result
4545
(str, (), {}, ("#000000",), {}, "#000000"),
4646
(repr, (), {}, ("#000000",), {}, 'HEX(hex_value="#000000")'),
47-
(round, (), {}, ("#000000",), {}, HEX("#000000")), # doesn't really impact the RGB or HEX objects, but exsists nonetheless
47+
(round, (), {}, ("#000000",), {}, HEX("#000000")), # doesn't really impact the RGB or HEX objects, but exists nonetheless
4848
(bool, (), {}, ("#000000",), {}, False),
4949
(bool, (), {}, ("#000001",), {}, True),
5050
(divmod, (8,), {}, ("#7f4736",), {}, (HEX("#0f0806"), HEX("#070706"))),
@@ -55,10 +55,10 @@ def test_HEX(self):
5555
def test_RGBA(self):
5656
objectType=RGBA
5757
casesOperation=(
58-
#operation oargs okwargs args kwargs result
58+
#operation oArgs oKwargs args kwargs result
5959
(str, (), {}, (0,0,0), {}, "0;0;0;0"),
6060
(repr, (), {}, (0,0,0), {}, "RGBA(r=0,g=0,b=0,a=0)"),
61-
(round, (), {}, (0,0,0), {}, RGBA(0,0,0,0)), # doesn't really impact the RGB or HEX objects, but exsists nonetheless
61+
(round, (), {}, (0,0,0), {}, RGBA(0,0,0,0)), # doesn't really impact the RGB or HEX objects, but exists nonetheless
6262
(bool, (), {}, (0,0,0), {}, False),
6363
(bool, (), {}, (0,0,1), {}, True),
6464
(divmod, (8,), {}, (127,71,54,28), {}, (RGBA(r=15,g=8,b=6,a=3), RGBA(r=7,g=7,b=6,a=4))),
@@ -71,10 +71,10 @@ def test_RGBA(self):
7171
def test_HEXA(self):
7272
objectType=HEXA
7373
casesOperation=(
74-
#operation oargs okwargs args kwargs result
74+
#operation oArgs oKwargs args kwargs result
7575
(str, (), {}, ("#00000000",), {}, "#00000000"),
7676
(repr, (), {}, ("#00000000",), {}, 'HEXA(hex_value="#00000000")'),
77-
(round, (), {}, ("#00000000",), {}, HEXA("#00000000")), # doesn't really impact the RGB or HEX objects, but exsists nonetheless
77+
(round, (), {}, ("#00000000",), {}, HEXA("#00000000")), # doesn't really impact the RGB or HEX objects, but exists nonetheless
7878
(bool, (), {}, ("#00000000",), {}, False),
7979
(bool, (), {}, ("#00000100",), {}, True),
8080
(divmod, (8,), {}, ("#7f473612",), {}, (HEXA(hex_value="#0f080602"), HEXA(hex_value="#07070602"))),
@@ -88,7 +88,7 @@ def test_HEXA(self):
8888
def test_HSV(self):
8989
objectType=HSV
9090
casesOperation=(
91-
#operation oargs okwargs args kwargs result
91+
#operation oArgs oKwargs args kwargs result
9292
(str, (), {}, (180,.5,.5), {}, "180;0.5;0.5"),
9393
(repr, (), {}, (180,.5,.5), {}, 'HSV(h=180,s=0.5,v=0.5)'),
9494
(round, (), {}, (180,.5,.5), {}, HSV(180,0,0)),
@@ -105,7 +105,7 @@ def test_HSV(self):
105105
def test_HSL(self):
106106
objectType=HSL
107107
casesOperation=(
108-
#operation oargs okwargs args kwargs result
108+
#operation oArgs oKwargs args kwargs result
109109
(str, (), {}, (180,.5,.5), {}, "180;0.5;0.5"),
110110
(repr, (), {}, (180,.5,.5), {}, 'HSL(h=180,s=0.5,l=0.5)'),
111111
(round, (), {}, (180,.5,.5), {}, HSL(180,0,0)),
@@ -122,7 +122,7 @@ def test_HSL(self):
122122
def test_CMYK(self):
123123
objectType=CMYK
124124
casesOperation=(
125-
#operation oargs okwargs args kwargs result
125+
#operation oArgs oKwargs args kwargs result
126126
(str, (), {}, (.5,.5,.5,.5), {}, "0.5;0.5;0.5;0.5"),
127127
(repr, (), {}, (.5,.5,.5,.5), {}, 'CMYK(c=0.5,m=0.5,y=0.5,k=0.5)'),
128128
(round, (), {}, (.5,.5,.5,.5), {}, CMYK(0,0,0,0)),

Tests/Functions/test_ANSIsequences.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@
1313
# ----------------------------------------------------------------------------------------------------------------------
1414
# - Code -
1515
# ----------------------------------------------------------------------------------------------------------------------
16-
class Functions_ANSIsequences(unittest.TestCase):
16+
class Functions_ANSISequences(unittest.TestCase):
1717
@staticmethod
1818
def nested(nested):
1919
return NestedColorSequence(
2020
# objects
2121
("This is a test",
2222
nested),
23-
# color/styling, reset and seperation
23+
# color/styling, reset and separation
2424
color_code="\033[38;2;128;0;0m",
2525
reset_code="\033[0m",
2626
sep="\n"
@@ -42,7 +42,7 @@ def test_NestedColorSequence(self):
4242
# objects
4343
("This is a test",
4444
"For real"),
45-
# color/styling, reset and seperation
45+
# color/styling, reset and separation
4646
color_code="\033[38;2;128;0;0m",
4747
reset_code="\033[0m",
4848
sep="\n"
@@ -56,7 +56,7 @@ def test_NestedColorSequence(self):
5656
# objects
5757
("This is a test",
5858
"For real"),
59-
# color/styling, reset and seperation
59+
# color/styling, reset and separation
6060
color_code="\033[38;2;128;0;0m",
6161
reset_code="\033[0m",
6262
sep="\n"

Tests/Functions/test_Constraints.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# ----------------------------------------------------------------------------------------------------------------------
1616
class Functions_Constraints(unittest.TestCase):
1717
def test_Constrain(self):
18-
# Keyworded arguments
18+
# Keyword arguments
1919
self.assertEqual(Constrain(value=125,maximum=100),100)
2020
self.assertEqual(Constrain(value=85,maximum=100),85)
2121
self.assertEqual(Constrain(value=85,maximum=100,minimum=90),90)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
setuptools.setup(
1616
name="AthenaColor",
17-
version="5.1.2",
17+
version="5.1.3",
1818
author="Andreas Sas",
1919
author_email="",
2020
description="Package to support full usage of RGB colors in the Console.",

src/AthenaColor/Color/ColorSystem.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ def wrapper(self,other:ColorSystem|int|tuple):
3535
# - Actual Color System -
3636
# ----------------------------------------------------------------------------------------------------------------------
3737
class ColorSystem(ABC):
38-
string_seperation=";"
38+
string_separation= ";"
3939
def __init__(self, *_):
4040
# no 'ColorSystem' can be created on its own
4141
raise PermissionError
4242

4343
def __str__(self)->str:
44-
return self.string_seperation.join(str(c) for c in self)
44+
return self.string_separation.join(str(c) for c in self)
4545

4646
@abstractmethod
4747
def __repr__(self)->str:...

src/AthenaColor/Color/ColorTupleConversion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
__all__ = [
2323
"hsl_to_hsv","hsv_to_hsl","hex_to_hsl","hsl_to_hex","hex_to_hsv","hsv_to_hex","rgb_to_hsl","hsl_to_rgb",
2424
"rgb_to_hsv","hsv_to_rgb","hsv_to_cmyk","cmyk_to_hsv","cmyk_to_hsl","hsl_to_cmyk","hex_to_cmyk","cmyk_to_hex",
25-
"rgb_to_cmyk","cmyk_to_rgb","hex_to_rgb","hexa_to_rgba","rgba_to_hexa","rgb_to_hex", "NormalizeRgb"
25+
"rgb_to_cmyk","cmyk_to_rgb","hex_to_rgb","hexa_to_rgba","rgba_to_hexa","rgb_to_hex", "NormalizeRgb", "NormalizeRgba"
2626
]
2727

2828
# ----------------------------------------------------------------------------------------------------------------------

0 commit comments

Comments
 (0)