Skip to content

Commit 3db7289

Browse files
author
Tjaz Erzen
committed
Improve formatting of dry run
1 parent 01ed0d8 commit 3db7289

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

plain2code.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,11 @@ def get_render_range_from(start, plain_source):
7575

7676
def compute_render_range(args, plain_source_tree):
7777
"""Compute render range from --render-range or --render-from arguments.
78-
78+
7979
Args:
8080
args: Parsed command line arguments
8181
plain_source_tree: Parsed plain source tree
82-
82+
8383
Returns:
8484
List of FRIDs to render, or None to render all
8585
"""
@@ -263,14 +263,14 @@ def main(): # noqa: C901
263263
try:
264264
if args.full_plain:
265265
# Read the raw plain source file
266-
with open(args.filename, 'r') as f:
266+
with open(args.filename, "r") as f:
267267
plain_source = f.read()
268-
268+
269269
[full_plain_source, _] = file_utils.get_loaded_templates(template_dirs, plain_source)
270-
270+
271271
if args.verbose:
272272
console.info("Full plain text:\n")
273-
273+
274274
console.info(full_plain_source)
275275
return
276276

plain2code_utils.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ def print_dry_run_output(plain_source_tree: dict, render_range: Optional[list[st
2222
specifications, _ = plain_spec.get_specifications_for_frid(plain_source_tree, frid)
2323
functional_requirement_text = specifications[plain_spec.FUNCTIONAL_REQUIREMENTS][-1]
2424
console.info(
25-
"-------------------------------------"
26-
f"Rendering functional requirement {frid}"
27-
f"{functional_requirement_text}"
28-
"-------------------------------------"
25+
"-------------------------------------\n"
26+
f"Rendering functional requirement {frid}\n"
27+
f"{functional_requirement_text}\n"
28+
"-------------------------------------\n"
2929
)
3030
if plain_spec.ACCEPTANCE_TESTS in specifications:
3131
for i, acceptance_test in enumerate(specifications[plain_spec.ACCEPTANCE_TESTS], 1):
32-
console.info(f"Generating acceptance test #{i}:\n\n{acceptance_test}")
32+
console.info(f"Generating acceptance test #{i}:\n\n{acceptance_test}\n")
3333
else:
3434
console.info(
3535
"-------------------------------------\n"

0 commit comments

Comments
 (0)