Skip to content

Commit 7b8fdff

Browse files
authored
ensure no overlapping updates and avoid renovate (#31)
1 parent 641fa76 commit 7b8fdff

3 files changed

Lines changed: 7 additions & 0 deletions

File tree

copier.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ _exclude:
5050
- "*.py[co]"
5151
- "~*"
5252
- copier.yaml
53+
- renovate.json
5354
- tests/test_template.py
5455
- .github/workflows/test-template.yml
5556

renovate.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
33
"schedule": ["* * 1 * *"],
44
"enabledManagers": ["custom.regex"],
5+
"ignorePaths": [
6+
".github/workflows/*.yml",
7+
".github/workflows/*.yaml"
8+
],
59
"customManagers": [
610
{
711
"customType": "regex",

tests/test_template.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ def test_template(tmp_path: Path) -> None:
5050
# Assert a file from the template was created
5151
assert (dst_path / "src/demo_project/main.py").exists()
5252
assert not (dst_path / ".git").exists()
53+
assert not (dst_path / "renovate.json").exists()
5354

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

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

0 commit comments

Comments
 (0)