From 5c901ec6a4fdc1127e4d67c7c1eec7484ca7a1bb Mon Sep 17 00:00:00 2001 From: d33bs Date: Wed, 1 Apr 2026 13:55:47 -0600 Subject: [PATCH] ensure no overlapping updates and avoid renovate --- copier.yaml | 1 + renovate.json | 4 ++++ tests/test_template.py | 2 ++ 3 files changed, 7 insertions(+) diff --git a/copier.yaml b/copier.yaml index 63070b6..966b7ef 100644 --- a/copier.yaml +++ b/copier.yaml @@ -50,6 +50,7 @@ _exclude: - "*.py[co]" - "~*" - copier.yaml + - renovate.json - tests/test_template.py - .github/workflows/test-template.yml diff --git a/renovate.json b/renovate.json index f0a98cf..b675d1e 100644 --- a/renovate.json +++ b/renovate.json @@ -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", diff --git a/tests/test_template.py b/tests/test_template.py index 4e16da4..57c10d2 100644 --- a/tests/test_template.py +++ b/tests/test_template.py @@ -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) @@ -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