added missing functions

master
derthorsten 5 years ago committed by James Curtin
parent 0308e67f07
commit 488b5dc8d3
  1. 9
      hooks/pre_gen_project.py

@ -6,6 +6,15 @@ logging.basicConfig()
LOGGER = logging.getLogger(__name__)
MODULE_REGEX = r"^[_a-zA-Z][_a-zA-Z0-9]+$"
class bcolors:
WARNING = "\033[93m"
ENDC = "\033[0m"
BOLD = "\033[1m"
def colorize(escape_code, text):
code = getattr(bcolors, escape_code)
return f"{code}{text}{bcolors.ENDC}"
def log_module_name_warning(module_name, logger):

Loading…
Cancel
Save