Skip to content

Commit

Permalink
🔧 🍪 check if cruft file is present uin update
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseRZapata committed Feb 12, 2024
1 parent 0331b09 commit 87e0f7b
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions hooks/post_gen_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,12 @@ def remove_dir(filepath: str) -> None:
if codecov != "y":
remove_file("codecov.yml")

text_msg = """
Install \033[1;32m Make \033[0m and run next steps to set git and environment:

🎉 Init git in local: \033[1;32m make init_git \033[0m
🎉 Init Environment: \033[1;32m make init_env \033[0m
"""
subprocess.run(["echo", "-e", text_msg], check=False) # nosec
if not os.path.exists(".cruft.json"):
text_msg = """
Install \033[1;32m Make \033[0m and run next steps to set git and environment:
🎉 Init git in local: \033[1;32m make init_git \033[0m
🎉 Init Environment: \033[1;32m make init_env \033[0m
"""
subprocess.run(["echo", "-e", text_msg], check=False) # nosec

0 comments on commit 87e0f7b

Please sign in to comment.