You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
367 B
Python

1 year ago
from invoke import task
1 year ago
@task(name="dev")
1 year ago
def serve_dev(c):
"""Runs the development server of this litestar project"""
c.run("echo 'Starting dev server'")
1 year ago
c.run("LITESTAR_APP=learn_litestar.app:app litestar run --reload")
1 year ago
@task
def delint(c):
c.run("isort ./learn_litestar ./tests", pty=True)
c.run("black ./learn_litestar ./tests", pty=True)