|
|
@ -7,6 +7,19 @@ def serve(c):
|
|
|
|
c.run("LITESTAR_APP=speech_collect.app:app litestar run --port 8888 --host 0.0.0.0 --reload")
|
|
|
|
c.run("LITESTAR_APP=speech_collect.app:app litestar run --port 8888 --host 0.0.0.0 --reload")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@task
|
|
|
|
|
|
|
|
def update_deps(c):
|
|
|
|
|
|
|
|
"""Updates depenencies"""
|
|
|
|
|
|
|
|
c.run("pip-compile requirements.in", pty=True)
|
|
|
|
|
|
|
|
c.run("pip-compile dev-requirements.in", pty=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@task
|
|
|
|
|
|
|
|
def sync_deps(c):
|
|
|
|
|
|
|
|
"""Syncs local dependencies"""
|
|
|
|
|
|
|
|
c.run("pip-sync requirements.txt dev-requirements.txt")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@task
|
|
|
|
@task
|
|
|
|
def build_image(c, dev=True):
|
|
|
|
def build_image(c, dev=True):
|
|
|
|
"""Builds the speech-collect container image."""
|
|
|
|
"""Builds the speech-collect container image."""
|
|
|
@ -20,5 +33,5 @@ def build_image(c, dev=True):
|
|
|
|
@task
|
|
|
|
@task
|
|
|
|
def delint(c):
|
|
|
|
def delint(c):
|
|
|
|
"""Applies automated linters to project"""
|
|
|
|
"""Applies automated linters to project"""
|
|
|
|
c.run("isort ./speech_collect ./tests", pty=True)
|
|
|
|
c.run("isort ./speech_collect ./tests ./tasks.py", pty=True)
|
|
|
|
c.run("black ./speech_collect ./tests", pty=True)
|
|
|
|
c.run("black ./speech_collect ./tests ./tasks.py", pty=True)
|
|
|
|