diff --git a/VERSION b/VERSION index 50140e3..9dd1793 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.1.33 +0.1.34 diff --git a/pyproject.toml b/pyproject.toml index ffc4f4f..f2893b1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "regix" -version = "0.1.33" +version = "0.1.34" description = "Regression Index — detect and measure code quality regressions between git versions" readme = "README.md" license = "Apache-2.0" diff --git a/regix/__init__.py b/regix/__init__.py index bd17d40..b6d217c 100644 --- a/regix/__init__.py +++ b/regix/__init__.py @@ -129,4 +129,4 @@ def check_gates(self, ref: str = "HEAD") -> GateResult: "ArchSmell", ] -__version__ = "0.1.33" +__version__ = "0.1.34" diff --git a/regix/integrations/planfile.py b/regix/integrations/planfile.py index 6a90e49..a6649b6 100644 --- a/regix/integrations/planfile.py +++ b/regix/integrations/planfile.py @@ -2,6 +2,7 @@ from __future__ import annotations +import os import subprocess import shutil from pathlib import Path @@ -19,7 +20,8 @@ def sync_regressions_to_planfile(report: RegressionReport, workdir: str = ".") - # 1. Find planfile executable planfile_bin = shutil.which("planfile") # Fallback to local copy if present - local_planfile = Path("/home/tom/github/semcod/planfile/.venv/bin/planfile") + env_planfile = os.environ.get("PLANFILE_BIN") + local_planfile = Path(env_planfile) if env_planfile else Path.home() / "github" / "semcod" / "planfile" / ".venv" / "bin" / "planfile" if not planfile_bin and local_planfile.exists(): planfile_bin = str(local_planfile)