Simplify archiving process (#469)

* simplify args

* Fix tests

* Black format
This commit is contained in:
Anton Osika
2023-07-02 16:43:13 +02:00
committed by GitHub
parent 60e0a7e1dd
commit 20ea0c126a
6 changed files with 40 additions and 45 deletions

View File

@@ -125,7 +125,10 @@ def insert_markdown_section(file_path, section_title, section_text, level):
if line_number != -1:
lines.insert(line_number, new_section)
else:
print(f"Markdown file was of unexpected format. No section of level {level} found. Did not write results.")
print(
f"Markdown file was of unexpected format. No section of level {level} found. "
"Did not write results."
)
return
# Write the file