18 lines
319 B
Python
18 lines
319 B
Python
![]() |
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)
|