mirror of
https://github.com/kuhyx/utils.git
synced 2026-11-10 19:07:17 +01:00
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
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:
parent
5a8efc3f0a
commit
4f7a7734ae
@ -8,6 +8,7 @@ from pathlib import Path
|
||||
PRUNE = frozenset(
|
||||
{
|
||||
".git",
|
||||
".utils",
|
||||
"node_modules",
|
||||
"build",
|
||||
".dart_tool",
|
||||
|
||||
@ -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:
|
||||
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))
|
||||
write(tmp_path, f"{deep}/test_deep.py")
|
||||
assert not has_tests(tmp_path, [])
|
||||
|
||||
Loading…
Reference in New Issue
Block a user