Commit b1b03a5766
Verified · cmc
Layout: unified · split
build.py +3 −1
| @@ -37,7 +37,9 @@ from pathlib import Path | |||
| 37 | def run_ruff(): | 37 | def 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) |