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 .")