Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[flake8]
max-line-length = 125
2 changes: 1 addition & 1 deletion cowsay/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@


if __name__ == "__main__":
cli()
cli()
44 changes: 22 additions & 22 deletions cowsay/characters.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

CHARS = {

"beavis" : r'''
"beavis": r'''
\
\
\
Expand All @@ -26,7 +26,7 @@

''',

"cheese": r'''
"cheese": r'''
\
\
\
Expand All @@ -48,7 +48,7 @@
/___\ /___\
''',

"daemon": r'''
"daemon": r'''
\
\
\
Expand All @@ -71,7 +71,7 @@
`--{__________) \/
''',

"cow": r'''
"cow": r'''
\
\
^__^
Expand All @@ -81,7 +81,7 @@
|| ||
''',

"dragon": r'''
"dragon": r'''
\
\
\
Expand All @@ -104,7 +104,7 @@
/.-~
''',

"fox": r'''
"fox": r'''
\
\
\
Expand All @@ -114,7 +114,7 @@
_// _// ~}
''',

"ghostbusters": r'''
"ghostbusters": r'''
\
\
\
Expand All @@ -141,7 +141,7 @@
''',


"kitty": r'''
"kitty": r'''
\
\
\
Expand All @@ -155,7 +155,7 @@
''',


"meow": r"""
"meow": r"""
\
\
\
Expand All @@ -171,14 +171,14 @@
(((__/(((_.' ((___..-'((__,'
""",

"miki": r'''
\
"miki": r'''
\
\ &************************&
\ &******************************&
\ &**********************************&
&**************************************&
&*****************************************&
&*******************************************&
&*******************************************&
&*********************************************&
&***********************************************&
&************************************************&
Expand All @@ -190,17 +190,17 @@
&**********@*********************************&
&*********@*********************************&
&********@@*********************************&
&*******@@@@@@****************************&
&*******@@@@@@****************************&
&**************************************&
&**************************************&
&******@@@@@@@@@@@@*********************&
&*************************************&
&*************************************&
&************************************&
&*******************************&
&*****************************&
''',

"milk": r'''
"milk": r'''
\
\
\
Expand All @@ -223,7 +223,7 @@
<__/ \__>
''',

"pig": r'''
"pig": r'''
\
\
\
Expand All @@ -240,7 +240,7 @@
/_]' /_]'
''',

"stegosaurus": r'''
"stegosaurus": r'''
\
\
\
Expand All @@ -262,7 +262,7 @@

''',

"stimpy": r'''
"stimpy": r'''
\
\
\
Expand All @@ -283,7 +283,7 @@
(____(____)
''',

"trex": r'''
"trex": r'''
\
\
\
Expand Down Expand Up @@ -319,7 +319,7 @@
/" "|
''',

"turkey": r'''
"turkey": r'''
\
\
\
Expand Down Expand Up @@ -347,7 +347,7 @@
^^^ ^^ ^^^ ^
''',

"turtle": r'''
"turtle": r'''
\
\
\
Expand All @@ -369,7 +369,7 @@
(_(___/ \_____)_)
''',

"tux": r'''
"tux": r'''
\
\
\
Expand Down
4 changes: 2 additions & 2 deletions cowsay/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def generate_bubble(text):
output.append("| " + line + " " * (text_width - len(line) + 1) + "|")
if len(lines) > 1:
output.append(" \\" + " " * text_width + "/")
output.append(" " + "=" * text_width)
output.append(" " + "=" * text_width)
return output


Expand Down Expand Up @@ -68,7 +68,7 @@ def func(text, char_lines=char_lines):
func.__name__ = char_name
globals()[char_name] = func
chars[char_name] = func


def get_output_string(char_name, text):
if char_name in CHARS:
Expand Down
4 changes: 2 additions & 2 deletions cowsay/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@
&*************************************&
&************************************&
&*******************************&
&*****************************&
&*****************************&
"""


Expand Down Expand Up @@ -649,7 +649,7 @@ def test_meow(self):
output = delete_empty_lines(output)
solution = delete_empty_lines(MEOW_SOLUTION)
assert output == solution

def test_miki(self):
output = capture_output(miki, (LOREM))
output = delete_empty_lines(output)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@
long_description_content_type='text/markdown',
zip_safe=False,
classifiers=CLASSIFIERS,
)
)