repo_contract: prune .utils (CI checkout of the gate) from the has-tests probe
Some checks are pending
dependency freshness / dependencies on newest stable (push) Waiting to run
file length / file-length (push) Waiting to run
md-naming / markdown naming convention (push) Waiting to run
palette drift / palette (push) Waiting to run
repo-contract / repo contract (push) Waiting to run
shared gate tests / gate unit tests (push) Waiting to run

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Krzysztof Rudnicki 2026-10-04 16:54:53 +02:00
parent 5a8efc3f0a
commit 4f7a7734ae
2 changed files with 2 additions and 0 deletions

View File

@ -8,6 +8,7 @@ from pathlib import Path
PRUNE = frozenset( PRUNE = frozenset(
{ {
".git", ".git",
".utils",
"node_modules", "node_modules",
"build", "build",
".dart_tool", ".dart_tool",

View File

@ -38,6 +38,7 @@ def test_shell_only_and_unknown(tmp_path: Path) -> None:
def test_walk_prunes_and_bounds_depth(tmp_path: Path) -> None: def test_walk_prunes_and_bounds_depth(tmp_path: Path) -> None:
write(tmp_path, "node_modules/x/y_test.py") write(tmp_path, "node_modules/x/y_test.py")
write(tmp_path, ".utils/tests/test_gate.py") # CI checkout of the shared gate
deep = "/".join(["d"] * (MAX_DEPTH + 1)) deep = "/".join(["d"] * (MAX_DEPTH + 1))
write(tmp_path, f"{deep}/test_deep.py") write(tmp_path, f"{deep}/test_deep.py")
assert not has_tests(tmp_path, []) assert not has_tests(tmp_path, [])