Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import click
- import subprocess
- click.echo('\n--- Running Mypy ---')
- res = subprocess.call(['mypy'])
- if res == 0:
- click.echo(click.style('OK', fg='green'))
- click.echo('\n--- Running Flake8 ---')
- res = subprocess.call(['flake8'])
- if res == 0:
- click.echo(click.style('OK', fg='green'))
- click.echo('\n--- Running pydocstyle ---')
- res = subprocess.call(['pydocstyle'])
- if res == 0:
- click.echo(click.style('OK', fg='green'))
- click.echo('\n--- Running Pytest ---')
- res = subprocess.call(['pytest'])
- if res == 0:
- click.echo(click.style('OK', fg='green'))
Add Comment
Please, Sign In to add comment