Skip to content

Commit

Permalink
ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
wpbonelli committed Dec 18, 2024
1 parent cefd9c9 commit a3aba33
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions doc/ReleaseNotes/mk_releasenotes.py
Original file line number Diff line number Diff line change
@@ -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")
Expand All @@ -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(
Expand All @@ -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")))
f.write(template.render(tomlkit.load(f"{fname}.toml")))

0 comments on commit a3aba33

Please sign in to comment.