Guest User

Untitled

a guest
Apr 25th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. import click
  2. import subprocess
  3.  
  4.  
  5. click.echo('\n--- Running Mypy ---')
  6. res = subprocess.call(['mypy'])
  7. if res == 0:
  8. click.echo(click.style('OK', fg='green'))
  9.  
  10. click.echo('\n--- Running Flake8 ---')
  11. res = subprocess.call(['flake8'])
  12. if res == 0:
  13. click.echo(click.style('OK', fg='green'))
  14.  
  15. click.echo('\n--- Running pydocstyle ---')
  16. res = subprocess.call(['pydocstyle'])
  17. if res == 0:
  18. click.echo(click.style('OK', fg='green'))
  19.  
  20. click.echo('\n--- Running Pytest ---')
  21. res = subprocess.call(['pytest'])
  22. if res == 0:
  23. click.echo(click.style('OK', fg='green'))
Add Comment
Please, Sign In to add comment