mev-inspect-py/scripts/dev_tools.py
2021-07-23 09:08:41 -07:00

32 lines
620 B
Python

from subprocess import check_call
def lint():
check_call(['pylint'])
def test():
check_call(['pytest', '--cov=mev_inspect', 'tests'])
def isort():
check_call(['isort', '.'])
def isortcheck():
check_call(['isort', '--diff', '.'])
def mypy():
check_call(['mypy', '.'])
def black():
check_call(['black', '.'])
def blackcheck():
check_call(['black', '--diff', '--color', '.'])
def start():
check_call(['docker', 'run', 'mev-inspect'])
def build():
check_call(['docker', 'build', '-t', 'mev-inspect', '.'])
def start_it():
check_call(['docker', 'run', '-it', 'mev-inspect'])