@@ -26,29 +26,39 @@ def config():
2626 input_file = Path (input_file )
2727 options = {
2828 "input_file" : input_file ,
29- "no_sync_cff" : not typer .confirm ("Do you want to sync to a CFF file?" , default = True ),
29+ "no_sync_cff" : not typer .confirm (
30+ "Do you want to sync to a CFF file?" , default = True
31+ ),
3032 }
3133 cff_file = typer .prompt ("CFF file path" , default = "CITATION.cff" )
3234 if cff_file is not None or cff_file != "" :
3335 options ["cff_file" ] = cff_file
3436
35- options ["no_sync_pyproject" ] = not typer .confirm ("Do you want to sync to a pyproject.toml file?" , default = True )
37+ options ["no_sync_pyproject" ] = not typer .confirm (
38+ "Do you want to sync to a pyproject.toml file?" , default = True
39+ )
3640
3741 pyproject_file = typer .prompt ("pyproject.toml file path" , default = "pyproject.toml" )
3842 if pyproject_file is not None or pyproject_file != "" :
3943 options ["pyproject_file" ] = pyproject_file
4044
41- options ["sync_package_json" ] = typer .confirm ("Do you want to sync to a package.json file?" , default = False )
45+ options ["sync_package_json" ] = typer .confirm (
46+ "Do you want to sync to a package.json file?" , default = False
47+ )
4248 package_json_file = typer .prompt ("package.json file path" , default = "package.json" )
4349 if package_json_file is not None or package_json_file != "" :
4450 options ["package_json_file" ] = package_json_file
4551
46- options ["no_sync_codemeta" ] = not typer .confirm ("Do you want to sync to a codemeta.json file?" , default = True )
52+ options ["no_sync_codemeta" ] = not typer .confirm (
53+ "Do you want to sync to a codemeta.json file?" , default = True
54+ )
4755 codemeta_file = typer .prompt ("codemeta.json file path" , default = "codemeta.json" )
4856 if codemeta_file is not None or codemeta_file != "" :
4957 options ["codemeta_file" ] = codemeta_file
5058
51- options ["show_info" ] = typer .confirm ("Do you want to show info about the sync process?" )
59+ options ["show_info" ] = typer .confirm (
60+ "Do you want to show info about the sync process?"
61+ )
5262 options ["verbose" ] = typer .confirm ("Do you want to show verbose logs?" )
5363 options ["debug" ] = typer .confirm ("Do you want to show debug logs?" )
5464
@@ -63,4 +73,6 @@ def config():
6373 logger .debug (f"CLI options entered: { options } " )
6474
6575 init_config (input_file , options )
66- logger .info (f"[bold green]Input file is updated/created at { input_file } [/bold green]" )
76+ logger .info (
77+ f"[bold green]Input file is updated/created at { input_file } [/bold green]"
78+ )
0 commit comments