@@ -67,11 +67,11 @@ 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" , description = "valid commands" , help = "additional help" ,
7171 )
7272
7373 import_teamocil = importsubparser .add_parser (
74- "teamocil" , help = "convert and import a teamocil config"
74+ "teamocil" , help = "convert and import a teamocil config" ,
7575 )
7676
7777 import_teamocilgroup = import_teamocil .add_mutually_exclusive_group (required = True )
@@ -83,15 +83,15 @@ def create_import_subparser(
8383 help = "checks current ~/.teamocil and current directory for yaml files" ,
8484 )
8585 import_teamocil .set_defaults (
86- callback = command_import_teamocil , import_subparser_name = "teamocil"
86+ callback = command_import_teamocil , import_subparser_name = "teamocil" ,
8787 )
8888
8989 import_tmuxinator = importsubparser .add_parser (
90- "tmuxinator" , help = "convert and import a tmuxinator config"
90+ "tmuxinator" , help = "convert and import a tmuxinator config" ,
9191 )
9292
9393 import_tmuxinatorgroup = import_tmuxinator .add_mutually_exclusive_group (
94- required = True
94+ required = True ,
9595 )
9696 tmuxinator_workspace_file = import_tmuxinatorgroup .add_argument (
9797 dest = "workspace_file" ,
@@ -102,7 +102,7 @@ def create_import_subparser(
102102 )
103103
104104 import_tmuxinator .set_defaults (
105- callback = command_import_tmuxinator , import_subparser_name = "tmuxinator"
105+ callback = command_import_tmuxinator , import_subparser_name = "tmuxinator" ,
106106 )
107107
108108 try :
@@ -134,7 +134,7 @@ def import_config(
134134 cfg_reader = ConfigReader (importfunc (existing_workspace_file ))
135135
136136 workspace_file_format = prompt_choices (
137- "Convert to" , choices = ["yaml" , "json" ], default = "yaml"
137+ "Convert to" , choices = ["yaml" , "json" ], default = "yaml" ,
138138 )
139139
140140 if workspace_file_format == "yaml" :
@@ -147,15 +147,15 @@ def import_config(
147147 tmuxp_echo (
148148 new_config + "---------------------------------------------------------------"
149149 "\n "
150- "Configuration import does its best to convert files.\n "
150+ "Configuration import does its best to convert files.\n " ,
151151 )
152152 if prompt_yes_no (
153- "The new config *WILL* require adjusting afterwards. Save config?"
153+ "The new config *WILL* require adjusting afterwards. Save config?" ,
154154 ):
155155 dest = None
156156 while not dest :
157157 dest_path = prompt (
158- "Save to [%s]" % os .getcwd (), value_proc = _resolve_path_no_overwrite
158+ "Save to [%s]" % os .getcwd (), value_proc = _resolve_path_no_overwrite ,
159159 )
160160
161161 # dest = dest_prompt
@@ -170,7 +170,7 @@ def import_config(
170170 tmuxp_echo (
171171 "tmuxp has examples in JSON and YAML format at "
172172 "<http://tmuxp.git-pull.com/examples.html>\n "
173- "View tmuxp docs at <http://tmuxp.git-pull.com/>"
173+ "View tmuxp docs at <http://tmuxp.git-pull.com/>" ,
174174 )
175175 sys .exit ()
176176
@@ -185,7 +185,7 @@ def command_import_tmuxinator(
185185 it into tmuxp.
186186 """
187187 workspace_file = find_workspace_file (
188- workspace_file , workspace_dir = get_tmuxinator_dir ()
188+ workspace_file , workspace_dir = get_tmuxinator_dir (),
189189 )
190190 import_config (workspace_file , importers .import_tmuxinator )
191191
@@ -200,7 +200,7 @@ def command_import_teamocil(
200200 it into tmuxp.
201201 """
202202 workspace_file = find_workspace_file (
203- workspace_file , workspace_dir = get_teamocil_dir ()
203+ workspace_file , workspace_dir = get_teamocil_dir (),
204204 )
205205
206206 import_config (workspace_file , importers .import_teamocil )
0 commit comments