diff --git a/doc/ReleaseNotes/mk_releasenotes.py b/doc/ReleaseNotes/mk_releasenotes.py index 9a513caa4e2..f1f722a5a0c 100644 --- a/doc/ReleaseNotes/mk_releasenotes.py +++ b/doc/ReleaseNotes/mk_releasenotes.py @@ -1,11 +1,10 @@ # This script converts the release notes TOML file # to a latex file to include in the release notes. import argparse -from pathlib import Path import sys +from pathlib import Path from warnings import warn - if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument("path") @@ -20,8 +19,8 @@ warn(f"Release notes TOML file not found: {fpath}") sys.exit(0) - from jinja2 import Environment, FileSystemLoader import tomlkit + from jinja2 import Environment, FileSystemLoader loader = FileSystemLoader(fnametex.parent) env = Environment( @@ -33,4 +32,4 @@ ) template = env.get_template(f"{fnametex.name}.jinja") with open(fnametex, "w") as f: - f.write(template.render(tomlkit.load(f"{fname}.toml"))) \ No newline at end of file + f.write(template.render(tomlkit.load(f"{fname}.toml")))