Skip to content

Commit 21649ff

Browse files
authored
Merge pull request #20 from ShockwaveNN/fix/flake-fixes
Fix minor style issues from `flake8`
2 parents c08fefb + 74e77ee commit 21649ff

File tree

6 files changed

+30
-28
lines changed

6 files changed

+30
-28
lines changed

.flake8

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[flake8]
2+
max-line-length = 125

cowsay/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33

44

55
if __name__ == "__main__":
6-
cli()
6+
cli()

cowsay/characters.py

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
CHARS = {
33

4-
"beavis" : r'''
4+
"beavis": r'''
55
\
66
\
77
\
@@ -26,7 +26,7 @@
2626
2727
''',
2828

29-
"cheese": r'''
29+
"cheese": r'''
3030
\
3131
\
3232
\
@@ -48,7 +48,7 @@
4848
/___\ /___\
4949
''',
5050

51-
"daemon": r'''
51+
"daemon": r'''
5252
\
5353
\
5454
\
@@ -71,7 +71,7 @@
7171
`--{__________) \/
7272
''',
7373

74-
"cow": r'''
74+
"cow": r'''
7575
\
7676
\
7777
^__^
@@ -81,7 +81,7 @@
8181
|| ||
8282
''',
8383

84-
"dragon": r'''
84+
"dragon": r'''
8585
\
8686
\
8787
\
@@ -104,7 +104,7 @@
104104
/.-~
105105
''',
106106

107-
"fox": r'''
107+
"fox": r'''
108108
\
109109
\
110110
\
@@ -114,7 +114,7 @@
114114
_// _// ~}
115115
''',
116116

117-
"ghostbusters": r'''
117+
"ghostbusters": r'''
118118
\
119119
\
120120
\
@@ -141,7 +141,7 @@
141141
''',
142142

143143

144-
"kitty": r'''
144+
"kitty": r'''
145145
\
146146
\
147147
\
@@ -155,7 +155,7 @@
155155
''',
156156

157157

158-
"meow": r"""
158+
"meow": r"""
159159
\
160160
\
161161
\
@@ -171,14 +171,14 @@
171171
(((__/(((_.' ((___..-'((__,'
172172
""",
173173

174-
"miki": r'''
175-
\
174+
"miki": r'''
175+
\
176176
\ &************************&
177177
\ &******************************&
178178
\ &**********************************&
179179
&**************************************&
180180
&*****************************************&
181-
&*******************************************&
181+
&*******************************************&
182182
&*********************************************&
183183
&***********************************************&
184184
&************************************************&
@@ -190,17 +190,17 @@
190190
&**********@*********************************&
191191
&*********@*********************************&
192192
&********@@*********************************&
193-
&*******@@@@@@****************************&
193+
&*******@@@@@@****************************&
194194
&**************************************&
195195
&**************************************&
196196
&******@@@@@@@@@@@@*********************&
197-
&*************************************&
197+
&*************************************&
198198
&************************************&
199199
&*******************************&
200200
&*****************************&
201201
''',
202202

203-
"milk": r'''
203+
"milk": r'''
204204
\
205205
\
206206
\
@@ -223,7 +223,7 @@
223223
<__/ \__>
224224
''',
225225

226-
"pig": r'''
226+
"pig": r'''
227227
\
228228
\
229229
\
@@ -240,7 +240,7 @@
240240
/_]' /_]'
241241
''',
242242

243-
"stegosaurus": r'''
243+
"stegosaurus": r'''
244244
\
245245
\
246246
\
@@ -262,7 +262,7 @@
262262
263263
''',
264264

265-
"stimpy": r'''
265+
"stimpy": r'''
266266
\
267267
\
268268
\
@@ -283,7 +283,7 @@
283283
(____(____)
284284
''',
285285

286-
"trex": r'''
286+
"trex": r'''
287287
\
288288
\
289289
\
@@ -319,7 +319,7 @@
319319
/" "|
320320
''',
321321

322-
"turkey": r'''
322+
"turkey": r'''
323323
\
324324
\
325325
\
@@ -347,7 +347,7 @@
347347
^^^ ^^ ^^^ ^
348348
''',
349349

350-
"turtle": r'''
350+
"turtle": r'''
351351
\
352352
\
353353
\
@@ -369,7 +369,7 @@
369369
(_(___/ \_____)_)
370370
''',
371371

372-
"tux": r'''
372+
"tux": r'''
373373
\
374374
\
375375
\

cowsay/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def generate_bubble(text):
3131
output.append("| " + line + " " * (text_width - len(line) + 1) + "|")
3232
if len(lines) > 1:
3333
output.append(" \\" + " " * text_width + "/")
34-
output.append(" " + "=" * text_width)
34+
output.append(" " + "=" * text_width)
3535
return output
3636

3737

@@ -68,7 +68,7 @@ def func(text, char_lines=char_lines):
6868
func.__name__ = char_name
6969
globals()[char_name] = func
7070
chars[char_name] = func
71-
71+
7272

7373
def get_output_string(char_name, text):
7474
if char_name in CHARS:

cowsay/test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@
569569
&*************************************&
570570
&************************************&
571571
&*******************************&
572-
&*****************************&
572+
&*****************************&
573573
"""
574574

575575

@@ -655,7 +655,7 @@ def test_meow(self):
655655
output = delete_empty_lines(output)
656656
solution = delete_empty_lines(MEOW_SOLUTION)
657657
assert output == solution
658-
658+
659659
def test_miki(self):
660660
output = capture_output(miki, (LOREM))
661661
output = delete_empty_lines(output)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@
2121
long_description_content_type='text/markdown',
2222
zip_safe=False,
2323
classifiers=CLASSIFIERS,
24-
)
24+
)

0 commit comments

Comments
 (0)