for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
import click
Cyclic imports may cause partly loaded modules to be returned. This might lead to unexpected runtime behavior which is hard to debug.
STYLES = {
'debug': {
'fg': 'blue',
},
'info': {
'fg': 'green',
'bold': True,
'highlight': {
'fg': 'cyan',
'note': {
'error': {
'fg': 'red',
}
def echo(message, style):
click.secho(
str(message),
**STYLES[style]
)
def debug(message):
echo('{}...'.format(message), 'debug')
def info(message):
echo('{}...'.format(message), 'info')
def note(message):
echo(message, 'note')
def note_style(message):
return click.style(message, **STYLES['note'])
def highlight(message):
return click.style(message, **STYLES['highlight'])
def error(message):
echo(message, 'error')
Cyclic imports may cause partly loaded modules to be returned. This might lead to unexpected runtime behavior which is hard to debug.