Re-point paths for the ~ reorganisation (home-tidy)
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
shared gate tests / gate unit tests (push) Waiting to run

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AwtowrowDXx6ccmWVPkCaF
This commit is contained in:
Krzysztof Rudnicki 2026-09-11 19:07:23 +02:00
parent 7096c102cd
commit 001670fcbc
3 changed files with 8 additions and 8 deletions

View File

@ -16,7 +16,7 @@ import re
import sys
from pathlib import Path
PROMPT_DIR = Path.home() / "utils" / "dopamine-ux"
PROMPT_DIR = Path.home() / "src/utils" / "dopamine-ux"
HOME = Path.home()
PATH_RE = re.compile(r"`(~?/[^`\s]+|[\w.\-]+/[\w./\-]+\.\w+)`")

View File

@ -39,7 +39,7 @@ def kuhy_repos() -> list[Path]:
def gate_violations() -> list[Path]:
"""Files the naming gate rejects, across every kuhy-owned repo."""
checker = HOME / "utils" / "scripts" / "check_md_naming.sh"
checker = HOME / "src/utils" / "scripts" / "check_md_naming.sh"
found: list[Path] = []
for repo in kuhy_repos():
result = subprocess.run(

View File

@ -14,8 +14,8 @@ import pytest
from md_naming.migrate import classify
from md_naming.migrate.plan import HOME, auto_name, rewrite, slugify
TODO_250 = HOME / "todo" / "refactor_claude_todo.md"
NEW_250 = HOME / "todo" / "TODO-file-length-250.md"
TODO_250 = HOME / "src/todo" / "refactor_claude_todo.md"
NEW_250 = HOME / "src/todo" / "TODO-file-length-250.md"
@pytest.mark.parametrize(
@ -42,8 +42,8 @@ def test_ambiguous_name_needs_qualifying_directory() -> None:
Pinning the bug that would have rewritten 12 vendored copies of
qs/.github/SECURITY.md during a dry run.
"""
old = HOME / "roadside-assistance" / "PLAN.md"
new = HOME / "roadside-assistance" / "DOCS-plan.md"
old = HOME / "src/roadside-assistance" / "PLAN.md"
new = HOME / "src/roadside-assistance" / "DOCS-plan.md"
assert rewrite("an unrelated PLAN.md", old, new) == "an unrelated PLAN.md"
assert (
rewrite("see roadside-assistance/PLAN.md", old, new)
@ -59,8 +59,8 @@ def test_distinctive_name_matches_regardless_of_directory() -> None:
repaired. The narrowing in AMBIGUOUS_NAMES is reserved for names that
genuinely collide (PLAN.md, README.md, SPEC.md).
"""
old = HOME / "utils" / "vmbox" / "SESSION_RESULTS.md"
new = HOME / "utils" / "vmbox" / "DOCS-session-results.md"
old = HOME / "src/utils" / "vmbox" / "SESSION_RESULTS.md"
new = HOME / "src/utils" / "vmbox" / "DOCS-session-results.md"
assert (
rewrite("vmbox/SESSION_RESULTS.md", old, new) == "vmbox/DOCS-session-results.md"
)