Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions repomatic/init_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,16 +213,14 @@ def _get_renovate_config() -> str:
# Remove the self-referencing uv customManagers entry (identified by its
# unique description). This entry targets renovate.json5 itself and causes
# an endless update loop when synced to downstream repos.
content = re.sub(
return re.sub(
r'\n \{\n description: "Update uv version in postUpgradeTasks'
r' download URL\.",\n.*?\n \},',
"",
content,
flags=re.DOTALL,
)

return content


def export_content(filename: str) -> str:
"""Get the content of any exportable bundled file.
Expand Down
11 changes: 3 additions & 8 deletions tests/test_init_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -636,15 +636,11 @@ def test_skills_consistency():

# Collect skill directories from the filesystem.
skills_dir = Path(__file__).resolve().parents[1] / ".claude" / "skills"
fs_skills = {
p.parent.name
for p in skills_dir.glob("*/SKILL.md")
}
fs_skills = {p.parent.name for p in skills_dir.glob("*/SKILL.md")}

# Collect skills registered in COMPONENT_FILES.
component_skills = {
rel_path.split("/")[2]
for _, rel_path in COMPONENT_FILES.get("skills", ())
rel_path.split("/")[2] for _, rel_path in COMPONENT_FILES.get("skills", ())
}

# Collect skills registered in _SKILL_PHASES.
Expand All @@ -653,8 +649,7 @@ def test_skills_consistency():
# Collect data symlinks.
data_dir = Path(__file__).resolve().parents[1] / "repomatic" / "data"
data_skills = {
p.stem.removeprefix("skill-")
for p in data_dir.glob("skill-repomatic-*.md")
p.stem.removeprefix("skill-") for p in data_dir.glob("skill-repomatic-*.md")
}

assert fs_skills == component_skills, (
Expand Down