@@ -67,11 +67,14 @@ def create_import_subparser(
6767) -> argparse .ArgumentParser :
6868 """Augment :class:`argparse.ArgumentParser` with ``import`` subparser."""
6969 importsubparser = parser .add_subparsers (
70- title = "commands" , description = "valid commands" , help = "additional help" ,
70+ title = "commands" ,
71+ description = "valid commands" ,
72+ help = "additional help" ,
7173 )
7274
7375 import_teamocil = importsubparser .add_parser (
74- "teamocil" , help = "convert and import a teamocil config" ,
76+ "teamocil" ,
77+ help = "convert and import a teamocil config" ,
7578 )
7679
7780 import_teamocilgroup = import_teamocil .add_mutually_exclusive_group (required = True )
@@ -83,11 +86,13 @@ def create_import_subparser(
8386 help = "checks current ~/.teamocil and current directory for yaml files" ,
8487 )
8588 import_teamocil .set_defaults (
86- callback = command_import_teamocil , import_subparser_name = "teamocil" ,
89+ callback = command_import_teamocil ,
90+ import_subparser_name = "teamocil" ,
8791 )
8892
8993 import_tmuxinator = importsubparser .add_parser (
90- "tmuxinator" , help = "convert and import a tmuxinator config" ,
94+ "tmuxinator" ,
95+ help = "convert and import a tmuxinator config" ,
9196 )
9297
9398 import_tmuxinatorgroup = import_tmuxinator .add_mutually_exclusive_group (
@@ -102,7 +107,8 @@ def create_import_subparser(
102107 )
103108
104109 import_tmuxinator .set_defaults (
105- callback = command_import_tmuxinator , import_subparser_name = "tmuxinator" ,
110+ callback = command_import_tmuxinator ,
111+ import_subparser_name = "tmuxinator" ,
106112 )
107113
108114 try :
@@ -134,7 +140,9 @@ def import_config(
134140 cfg_reader = ConfigReader (importfunc (existing_workspace_file ))
135141
136142 workspace_file_format = prompt_choices (
137- "Convert to" , choices = ["yaml" , "json" ], default = "yaml" ,
143+ "Convert to" ,
144+ choices = ["yaml" , "json" ],
145+ default = "yaml" ,
138146 )
139147
140148 if workspace_file_format == "yaml" :
@@ -155,7 +163,8 @@ def import_config(
155163 dest = None
156164 while not dest :
157165 dest_path = prompt (
158- "Save to [%s]" % os .getcwd (), value_proc = _resolve_path_no_overwrite ,
166+ "Save to [%s]" % os .getcwd (),
167+ value_proc = _resolve_path_no_overwrite ,
159168 )
160169
161170 # dest = dest_prompt
@@ -185,7 +194,8 @@ def command_import_tmuxinator(
185194 it into tmuxp.
186195 """
187196 workspace_file = find_workspace_file (
188- workspace_file , workspace_dir = get_tmuxinator_dir (),
197+ workspace_file ,
198+ workspace_dir = get_tmuxinator_dir (),
189199 )
190200 import_config (workspace_file , importers .import_tmuxinator )
191201
@@ -200,7 +210,8 @@ def command_import_teamocil(
200210 it into tmuxp.
201211 """
202212 workspace_file = find_workspace_file (
203- workspace_file , workspace_dir = get_teamocil_dir (),
213+ workspace_file ,
214+ workspace_dir = get_teamocil_dir (),
204215 )
205216
206217 import_config (workspace_file , importers .import_teamocil )
0 commit comments