roll back pre-commit changes

This commit is contained in:
Mayukha Vadari
2026-07-23 16:32:48 -04:00
parent 5c95d11127
commit 4c6ad48c90

View File

@@ -49,7 +49,6 @@ def find_tool(name: str) -> str | None:
def find_build_dir(repo_root: Path) -> Path | None:
for name in (".build", "build"):
candidate = repo_root / name
print("find_build_dir: candidate: ", candidate)
if (candidate / "compile_commands.json").exists():
return candidate
return None
@@ -95,6 +94,7 @@ def main():
repo_root = Path(
subprocess.check_output(
["git", "rev-parse", "--show-toplevel"],
cwd=Path(__file__).parent,
text=True,
).strip()
)