Files
new-premier/tasks.py
2024-04-22 16:31:59 +08:00

23 lines
339 B
Python

from invoke import task
from threading import Thread
@task
def dev(c):
c.run("manage runserver", pty=True)
@task
def celery(c):
c.run("celery -A premier worker -l INFO -c 2 -P prefork -B", pty=True)
@task
def style(c):
c.run("ruff check . --fix && ruff format .", pty=True)
@task
def lint(c):
c.run("ruff check .")