From 2ee08bf1a8144e395e916cd0268b4c2ba59890bc Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 7 Sep 2025 00:10:09 +0000 Subject: [PATCH 1/2] Initial plan From decfd22cb7cbf31427adcae05e3e90fab1b65083 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 7 Sep 2025 00:24:41 +0000 Subject: [PATCH 2/2] Fix ResourceWarning for unclosed files in test_cookiecutter_generation.py Co-authored-by: MauGx3 <225707+MauGx3@users.noreply.github.com> --- tests/test_cookiecutter_generation.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/test_cookiecutter_generation.py b/tests/test_cookiecutter_generation.py index 7d273f44a..a066208ec 100755 --- a/tests/test_cookiecutter_generation.py +++ b/tests/test_cookiecutter_generation.py @@ -168,9 +168,10 @@ def check_paths(paths: Iterable[Path]): if is_binary(str(path)): continue - for line in path.open(): - match = RE_OBJ.search(line) - assert match is None, f"cookiecutter variable not replaced in {path}" + with path.open() as file: + for line in file: + match = RE_OBJ.search(line) + assert match is None, f"cookiecutter variable not replaced in {path}" @pytest.mark.parametrize("context_override", SUPPORTED_COMBINATIONS, ids=_fixture_id)