chore: Add Stricter Frontend Formatting (#6262)

This commit is contained in:
Michael Genson authored and GitHub committed 2025-09-27 13:57:53 -05:00
1 parent ecdf7de386
commit d16a10440d
52 files changed
+945 -818

No files matched your search

@@ -1,3 +1,4 @@
import subprocess
from dataclasses import dataclass
from pathlib import Path
@@ -105,12 +106,16 @@ def main():
# Flatten list of lists
all_children = [item for sublist in all_children for item in sublist]
out_path = GENERATED / "__init__.py"
render_python_template(
TEMPLATE,
GENERATED / "__init__.py",
out_path,
{"children": all_children},
)
subprocess.run(["poetry", "run", "ruff", "check", str(out_path), "--fix"])
subprocess.run(["poetry", "run", "ruff", "format", str(out_path)])
if __name__ == "__main__":
main()