File tree Expand file tree Collapse file tree 3 files changed +12
-4
lines changed Expand file tree Collapse file tree 3 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,8 @@ function open {
64
64
65
65
function clean {
66
66
(root
67
- isort hug/*.py setup.py tests/*.py)
67
+ isort hug/*.py setup.py tests/*.py
68
+ black -l 100 hug)
68
69
}
69
70
70
71
Original file line number Diff line number Diff line change @@ -471,11 +471,14 @@ def output_format(self, formatter):
471
471
def __str__ (self ):
472
472
output = "{0}\n \n Available Commands:\n \n " .format (self .api .doc or self .api .name )
473
473
for command_name , command in self .commands .items ():
474
- command_string = " - {}{}" .format (command_name , ": " + str (command ).replace ("\n " , " " ) if str (command ) else "" )
475
- output += (command_string [:77 ] + "..." if len (command_string ) > 80 else command_string )
474
+ command_string = " - {}{}" .format (
475
+ command_name , ": " + str (command ).replace ("\n " , " " ) if str (command ) else ""
476
+ )
477
+ output += command_string [:77 ] + "..." if len (command_string ) > 80 else command_string
476
478
output += "\n "
477
479
return output
478
480
481
+
479
482
class ModuleSingleton (type ):
480
483
"""Defines the module level __hug__ singleton"""
481
484
Original file line number Diff line number Diff line change @@ -597,7 +597,11 @@ def exit_callback(message):
597
597
598
598
for field , type_handler in self .reaffirm_types .items ():
599
599
if field in pass_to_function :
600
- if not pass_to_function [field ] and type_handler in (list , tuple , hug .types .Multiple ):
600
+ if not pass_to_function [field ] and type_handler in (
601
+ list ,
602
+ tuple ,
603
+ hug .types .Multiple ,
604
+ ):
601
605
pass_to_function [field ] = type_handler (())
602
606
else :
603
607
pass_to_function [field ] = self .initialize_handler (
You can’t perform that action at this time.
0 commit comments