Skip to content

Commit d58a896

Browse files
committed
Adds more clarity to checklist notice
1 parent 1efb166 commit d58a896

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

hooks/post_gen_project.py

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,20 @@
55
from shutil import rmtree, copytree
66

77

8+
class color:
9+
"""Simple colors for print without external libraries."""
10+
PURPLE = '\033[95m'
11+
CYAN = '\033[96m'
12+
DARK_CYAN = '\033[36m'
13+
BLUE = '\033[94m'
14+
GREEN = '\033[92m'
15+
YELLOW = '\033[93m'
16+
RED = '\033[91m'
17+
BOLD = '\033[1m'
18+
UNDERLINE = '\033[4m'
19+
END = '\033[0m'
20+
21+
822
def change_line_endings_crlf_to_lf():
923
for path in Path(".").glob("**/*"):
1024
if path.is_file():
@@ -31,7 +45,7 @@ def add_ci_action_unit_tests_runner():
3145

3246
target_language = "{{cookiecutter.project_language}}"
3347

34-
if {{cookiecutter.add_ci_action_unit_tests_runner}}
48+
if {{cookiecutter.add_ci_action_unit_tests_runner}}:
3549

3650
if target_language.lower() != "other":
3751

@@ -41,9 +55,11 @@ def add_ci_action_unit_tests_runner():
4155
ci_test_workflow_files_path = Path("_", "workflows", target_language)
4256
copytree(ci_test_workflow_files_path, destination)
4357

44-
print("\n\n#################################################################")
45-
print("# Please check gen. checklist in order to adjust CI UT basic action #")
46-
print("#################################################################\n\n")
58+
print("\n\n######################################################################")
59+
print("# #")
60+
print(f"# {color.BOLD}{color.BLUE}Please review gen. checklist in order to adjust CI UT basic action{color.END} #")
61+
print("# #")
62+
print("######################################################################\n\n")
4763

4864
else:
4965
LOG.info("CI action for running unit tests file generation is not defined for %s language. Skipping...", target_language)

0 commit comments

Comments
 (0)