seal5/backends/riscv_features: fix #445
GitHub Actions / Black
failed
Nov 18, 2024 in 0s
1 error
Black found 1 error
Annotations
Check failure on line 71 in /home/runner/work/seal5/seal5/seal5/backends/riscv_features/writer.py
github-actions / Black
/home/runner/work/seal5/seal5/seal5/backends/riscv_features/writer.py#L58-L71
# TODO: make util!
assert isinstance(version, float)
major, minor = list(map(int, f"{val:.1f}".split(".", 1)))
-
content_template = Template(filename=str(template_dir / f"{template_name}.mako"))
- content_text = content_template.render(predicate=predicate, feature=feature, arch=arch_, description=description, major=major, minor=minor)
+ content_text = content_template.render(
+ predicate=predicate, feature=feature, arch=arch_, description=description, major=major, minor=minor
+ )
return content_text + "\n"
def main():
"""Main app entrypoint."""
Loading