fix(ci): auto-format on commit, decouple lint from tests, add codecov threshold

This commit is contained in:
AIOSAI
2026-05-12 22:41:03 -07:00
parent 47bdbb025c
commit 453c847359
11 changed files with 52 additions and 17 deletions
@@ -67,6 +67,20 @@ def commit_changes(
repo_root = find_repo_root()
if all_files:
import shutil
ruff_bin = shutil.which("ruff")
if not ruff_bin:
venv_ruff = repo_root / ".venv" / "bin" / "ruff"
if venv_ruff.exists():
ruff_bin = str(venv_ruff)
if ruff_bin:
subprocess.run(
[ruff_bin, "format", "src/", "tests/"],
capture_output=True,
text=True,
cwd=str(repo_root),
)
add_result = subprocess.run(
["git", "add", "-A"],
capture_output=True,