1
0
Fork 0
This repository has been archived on 2025-03-30. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
markov-music-generator/tasks.py
2022-10-15 19:41:38 +03:00

17 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)