Keep a discovered slug's case for a host with KEEP_CASE, and check only group 1 against the hosts' own path words

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
WolfandClaude Opus 5.5 committed 2026-09-29 19:37:26 +02:00
1 parent 9cb35ae785
commit 75a389d725
3 files changed
+45 -4

No files matched your search

+2
View File
@@ -70,6 +70,8 @@ def problems(module: ModuleType, name: str | None = None) -> list[str]:
out.append(f"NAME is {module.NAME!r}, not the module's name {name!r}")
if hasattr(module, "LABEL") and not (isinstance(module.LABEL, str) and module.LABEL):
out.append("LABEL is not a non-empty string")
if not isinstance(getattr(module, "KEEP_CASE", False), bool):
out.append("KEEP_CASE is not a bool")
patterns = getattr(module, "PATTERNS", ())
if isinstance(patterns, str) or not isinstance(patterns, Iterable):
out.append("PATTERNS is not a tuple of strings")