Lisätty invoke komennot
This commit is contained in:
parent
83fd8ea522
commit
71a6426028
8 changed files with 26 additions and 6 deletions
17
tasks.py
Normal file
17
tasks.py
Normal 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)
|
Reference in a new issue