From a3aba33e1c7736277c0ed7c8bf25e5b544fe977c Mon Sep 17 00:00:00 2001 From: wpbonelli Date: Wed, 18 Dec 2024 07:00:36 -0500 Subject: [PATCH] ruff --- doc/ReleaseNotes/mk_releasenotes.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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")))