Skip to content

Commit a9d34fc

Browse files
committed
build: add a git checkout step to prevent running retrocookie on the template pyproject.toml
1 parent 72e2829 commit a9d34fc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/match-generated-precommit.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import typer
77
from retrocookie.core import retrocookie
88

9+
from util import git
910
from util import FolderOption
1011
from util import in_new_demo
1112

@@ -30,6 +31,7 @@ def match_generated_precommit(
3031
) as demo_path:
3132
pre_commit.main.main(["run", "--all-files", "--hook-stage=manual", "--show-diff-on-failure"])
3233
retrocookie(instance_path=demo_path, commits=["HEAD"])
34+
git("checkout", "HEAD", "--", "{{cookiecutter.project_name}}/pyproject.toml")
3335
except Exception as error:
3436
typer.secho(f"error: {error}", fg="red")
3537
sys.exit(1)

0 commit comments

Comments
 (0)