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

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