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
3 changes: 3 additions & 0 deletions .github/workflows/sync-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ jobs:
with:
path: cookiecutter-repository

- name: Install pre-commit
run: pip install pre-commit

- name: Install cookiecutter
run: pip install cookiecutter

Expand Down
4 changes: 2 additions & 2 deletions hooks/post_gen_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ def __enter__(self):

def __exit__(self, exc_type, exc_val, exc_tb):
# Finalize by making an initial git commit
subprocess.check_call("git add *".split())
subprocess.check_call(["git", "add", "-A"])

# Maybe run pre-commit
if {{ have_precommit }}:
subprocess.call("pre-commit run -a".split())
subprocess.check_call("git add *".split())
subprocess.check_call(["git", "add", "-A"])

subprocess.check_call(["git", "commit", "-m", "Initial Commit"])
subprocess.check_call(["git", "tag", "v0.0.1"])
Expand Down
Loading