chore: tighten upkeep boundaries and static checks
test / integration-macos (pull_request) Has been skipped
test / integration-docker (pull_request) Successful in 20s
tracker-policy-pr / check-pr (pull_request) Successful in 24s
test / unit (pull_request) Successful in 54s
test / integration-firecracker (pull_request) Successful in 3m59s
test / coverage (pull_request) Successful in 18s
test / publish-infra (pull_request) Has been skipped
lint / lint (push) Failing after 13m2s

This commit is contained in:
2026-07-26 06:42:03 +00:00
parent 17052cbf88
commit 99040ea0b1
7 changed files with 32 additions and 14 deletions
+5 -1
View File
@@ -16,7 +16,11 @@ def _path_matches(pm: PathMatch, request_path: str) -> bool:
if not pm.value.endswith("/"):
return request_path.startswith(pm.value + "/")
return request_path.startswith(pm.value)
return pm.type == "regex" and pm.compiled is not None and pm.compiled.search(request_path) is not None
return (
pm.type == "regex"
and pm.compiled is not None
and pm.compiled.search(request_path) is not None
)
def _entry_matches(
-2
View File
@@ -347,5 +347,3 @@ def load_config(text: str) -> "Config":
except YamlSubsetError as e:
raise ValueError(f"routes payload: invalid YAML: {e}") from e
return parse_config(payload)