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
1 change: 1 addition & 0 deletions copier.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ _exclude:
- "*.py[co]"
- "~*"
- copier.yaml
- renovate.json
- tests/test_template.py
- .github/workflows/test-template.yml

Expand Down
4 changes: 4 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"schedule": ["* * 1 * *"],
"enabledManagers": ["custom.regex"],
"ignorePaths": [
".github/workflows/*.yml",
".github/workflows/*.yaml"
],
"customManagers": [
{
"customType": "regex",
Expand Down
2 changes: 2 additions & 0 deletions tests/test_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ def test_template(tmp_path: Path) -> None:
# Assert a file from the template was created
assert (dst_path / "src/demo_project/main.py").exists()
assert not (dst_path / ".git").exists()
assert not (dst_path / "renovate.json").exists()

# Run pytest from the copied template
subprocess.run(["uv", "run", "pytest"], cwd=dst_path, check=True)
Expand Down Expand Up @@ -77,5 +78,6 @@ def test_template_preserves_existing_git_repo(tmp_path: Path) -> None:
)

assert (dst_path / "src/demo_project/main.py").exists()
assert not (dst_path / "renovate.json").exists()
assert _git("rev-parse", "--is-inside-work-tree", cwd=dst_path) == "true"
assert _git("rev-parse", "HEAD", cwd=dst_path) == original_head
Loading