Skip to content

Commit b593e8e

Browse files
style: apply ruff formatting for CLI metadata changes
1 parent 8b28ad5 commit b593e8e

3 files changed

Lines changed: 10 additions & 6 deletions

File tree

concore_cli/commands/init.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,15 +90,15 @@ def init_project(name, template, console):
9090
f.write(README_TEMPLATE.format(project_name=name))
9191

9292
metadata_path = write_study_metadata(
93-
project_path, generated_by="concore init", workflow_file=workflow_file
93+
project_path, generated_by="concore init", workflow_file=workflow_file
9494
)
9595

9696
console.print()
9797
console.print(
9898
Panel.fit(
9999
f"[green]✓[/green] Project created successfully!\n\n"
100-
f"Metadata:\n"
101-
f" {metadata_path.name}\n\n"
100+
f"Metadata:\n"
101+
f" {metadata_path.name}\n\n"
102102
f"Next steps:\n"
103103
f" cd {name}\n"
104104
f" concore validate workflow.graphml\n"

concore_cli/commands/metadata.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ def _detect_tools() -> dict:
3535
return detected
3636

3737

38-
def write_study_metadata(study_path: Path, generated_by: str, workflow_file: Path = None):
38+
def write_study_metadata(
39+
study_path: Path, generated_by: str, workflow_file: Path = None
40+
):
3941
checksums = {}
4042
checksum_candidates = [
4143
"workflow.graphml",
@@ -72,4 +74,4 @@ def write_study_metadata(study_path: Path, generated_by: str, workflow_file: Pat
7274

7375
metadata_path = study_path / "STUDY.json"
7476
metadata_path.write_text(json.dumps(metadata, indent=2) + "\n", encoding="utf-8")
75-
return metadata_path
77+
return metadata_path

concore_cli/commands/run.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@ def run_workflow(workflow_file, source, output, exec_type, auto_build, console):
7979
console.print(
8080
f"[green]✓[/green] Workflow generated in [cyan]{output_path}[/cyan]"
8181
)
82-
console.print(f"[green]✓[/green] Metadata written to [cyan]{metadata_path}[/cyan]")
82+
console.print(
83+
f"[green]✓[/green] Metadata written to [cyan]{metadata_path}[/cyan]"
84+
)
8385

8486
except subprocess.CalledProcessError as e:
8587
progress.stop()

0 commit comments

Comments
 (0)