1
0
Fork 0

Lisätty invoke komennot

This commit is contained in:
Vili Sinervä 2022-10-15 19:41:38 +03:00
parent 83fd8ea522
commit 71a6426028
8 changed files with 26 additions and 6 deletions

17
tasks.py Normal file
View file

@ -0,0 +1,17 @@
from invoke import task
@task
def start(ctx):
ctx.run("python3 src/main.py", pty=True)
@task
def lint(ctx):
ctx.run("pylint src", pty=True)
@task
def test(ctx):
ctx.run("pytest src", pty=True)
@task
def coverage_report(ctx):
ctx.run("coverage run --branch -m pytest src && coverage html", pty=True)