diff --git a/.flake8 b/.flake8 new file mode 100644 index 0000000..113ca5f --- /dev/null +++ b/.flake8 @@ -0,0 +1,2 @@ +[flake8] +max-line-length = 125 diff --git a/cowsay/__main__.py b/cowsay/__main__.py index 6fffa56..ad195d8 100644 --- a/cowsay/__main__.py +++ b/cowsay/__main__.py @@ -3,4 +3,4 @@ if __name__ == "__main__": - cli() \ No newline at end of file + cli() diff --git a/cowsay/characters.py b/cowsay/characters.py index 4a3579b..cdfdf43 100644 --- a/cowsay/characters.py +++ b/cowsay/characters.py @@ -1,7 +1,7 @@ CHARS = { -"beavis" : r''' + "beavis": r''' \ \ \ @@ -26,7 +26,7 @@ ''', -"cheese": r''' + "cheese": r''' \ \ \ @@ -48,7 +48,7 @@ /___\ /___\ ''', -"daemon": r''' + "daemon": r''' \ \ \ @@ -71,7 +71,7 @@ `--{__________) \/ ''', -"cow": r''' + "cow": r''' \ \ ^__^ @@ -81,7 +81,7 @@ || || ''', -"dragon": r''' + "dragon": r''' \ \ \ @@ -104,7 +104,7 @@ /.-~ ''', -"fox": r''' + "fox": r''' \ \ \ @@ -114,7 +114,7 @@ _// _// ~} ''', -"ghostbusters": r''' + "ghostbusters": r''' \ \ \ @@ -141,7 +141,7 @@ ''', -"kitty": r''' + "kitty": r''' \ \ \ @@ -155,7 +155,7 @@ ''', -"meow": r""" + "meow": r""" \ \ \ @@ -171,14 +171,14 @@ (((__/(((_.' ((___..-'((__,' """, -"miki": r''' -\ + "miki": r''' +\ \ &************************& \ &******************************& \ &**********************************& &**************************************& &*****************************************& - &*******************************************& + &*******************************************& &*********************************************& &***********************************************& &************************************************& @@ -190,17 +190,17 @@ &**********@*********************************& &*********@*********************************& &********@@*********************************& - &*******@@@@@@****************************& + &*******@@@@@@****************************& &**************************************& &**************************************& &******@@@@@@@@@@@@*********************& - &*************************************& + &*************************************& &************************************& &*******************************& &*****************************& ''', -"milk": r''' + "milk": r''' \ \ \ @@ -223,7 +223,7 @@ <__/ \__> ''', -"pig": r''' + "pig": r''' \ \ \ @@ -240,7 +240,7 @@ /_]' /_]' ''', -"stegosaurus": r''' + "stegosaurus": r''' \ \ \ @@ -262,7 +262,7 @@ ''', -"stimpy": r''' + "stimpy": r''' \ \ \ @@ -283,7 +283,7 @@ (____(____) ''', -"trex": r''' + "trex": r''' \ \ \ @@ -319,7 +319,7 @@ /" "| ''', -"turkey": r''' + "turkey": r''' \ \ \ @@ -347,7 +347,7 @@ ^^^ ^^ ^^^ ^ ''', -"turtle": r''' + "turtle": r''' \ \ \ @@ -369,7 +369,7 @@ (_(___/ \_____)_) ''', -"tux": r''' + "tux": r''' \ \ \ diff --git a/cowsay/main.py b/cowsay/main.py index 51e1087..dd12075 100644 --- a/cowsay/main.py +++ b/cowsay/main.py @@ -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 @@ -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: diff --git a/cowsay/test.py b/cowsay/test.py index 263126a..bdff1e5 100644 --- a/cowsay/test.py +++ b/cowsay/test.py @@ -569,7 +569,7 @@ &*************************************& &************************************& &*******************************& - &*****************************& + &*****************************& """ @@ -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) diff --git a/setup.py b/setup.py index 63ca4ab..a729b20 100644 --- a/setup.py +++ b/setup.py @@ -21,4 +21,4 @@ long_description_content_type='text/markdown', zip_safe=False, classifiers=CLASSIFIERS, - ) + )