utils/dep_freshness/tests
Krzysztof kuhy Rudnicki 49ce0b250c Put the hook in the last repo: local block, not at end of file
Most of these configs interleave local and remote hook repos -- diet-guard,
screen-locker and wake-alarm carry nine `- repo:` blocks each. Appending at
end of file lands the hook under whichever block happens to be last, and a
local hook definition handed to a remote repo fails with an error naming an
unknown id rather than the real problem. diet-guard's last block happens to be
`local`, so this would have worked by luck there and broken elsewhere.

A config with no local block now refuses rather than guessing.

308 tests, 100% branch coverage.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CRykabMwPgDzFHcARoqpaK
2026-08-28 14:21:31 +02:00
..
__init__.py Add the shared dependency-freshness gate 2026-08-28 13:00:35 +02:00
conftest.py Don't judge allowlist rot from a file-scoped run; cut two library versions 2026-08-28 14:07:09 +02:00
test_allowlist.py Make the allowlist inheritable, and cache the quarantine lookups 2026-08-28 13:58:44 +02:00
test_check_allowlist.py Don't judge allowlist rot from a file-scoped run; cut two library versions 2026-08-28 14:07:09 +02:00
test_check.py Don't judge allowlist rot from a file-scoped run; cut two library versions 2026-08-28 14:07:09 +02:00
test_constraints.py Add the shared dependency-freshness gate 2026-08-28 13:00:35 +02:00
test_discover.py Exclude the shared-gate checkout from dependency discovery 2026-08-28 13:24:00 +02:00
test_edges.py Add the shared dependency-freshness gate 2026-08-28 13:00:35 +02:00
test_evaluate.py Judge peer dependencies by range, and check the packageManager pin 2026-08-28 13:38:40 +02:00
test_golang.py Add the shared dependency-freshness gate 2026-08-28 13:00:35 +02:00
test_http.py Add the shared dependency-freshness gate 2026-08-28 13:00:35 +02:00
test_install.py Put the hook in the last repo: local block, not at end of file 2026-08-28 14:21:31 +02:00
test_parsers_edges.py Add the shared dependency-freshness gate 2026-08-28 13:00:35 +02:00
test_parsers.py Judge peer dependencies by range, and check the packageManager pin 2026-08-28 13:38:40 +02:00
test_quarantine.py Make the allowlist inheritable, and cache the quarantine lookups 2026-08-28 13:58:44 +02:00
test_registries.py Add the shared dependency-freshness gate 2026-08-28 13:00:35 +02:00
test_report.py Add the shared dependency-freshness gate 2026-08-28 13:00:35 +02:00
test_resolve.py Add the shared dependency-freshness gate 2026-08-28 13:00:35 +02:00
test_toolchain_registry.py Add the shared dependency-freshness gate 2026-08-28 13:00:35 +02:00
test_versions.py Accept exact pins with more than three version components 2026-08-28 13:37:12 +02:00