Commit b1b03a5766

b1b03a576619e91a82550d25c896771a406fe254

parent: ec9e80eb91

Verified · cmc

cmc <hello@cleberg.net> · 2026-03-23 16:58 UTC

chore: ruff format

Layout: unified · split

build.py +3 −1
@@ -37,7 +37,9 @@ from pathlib import Path
37def run_ruff(): 37def run_ruff():
38 print("Running ruff...") 38 print("Running ruff...")
39 for cmd in [["ruff", "check", "--fix"], ["ruff", "format"]]: 39 for cmd in [["ruff", "check", "--fix"], ["ruff", "format"]]:
40 result = subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True) 40 result = subprocess.run(
41 cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True
42 )
41 if result.returncode != 0: 43 if result.returncode != 0:
42 print(f"ruff error ({' '.join(cmd)}):") 44 print(f"ruff error ({' '.join(cmd)}):")
43 print(result.stderr, file=sys.stderr) 45 print(result.stderr, file=sys.stderr)