Skip to content

Commit f4716cf

Browse files
committed
added invoke
1 parent 9ea7bf5 commit f4716cf

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

pyproject.toml

+1
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ coverage = "^7.6.1"
6666
django-coverage-plugin = "^3.1.0"
6767
pytest-asyncio = "^0.24.0"
6868
pre-commit = "^4.0.1"
69+
invoke = "^2.2.0"
6970

7071

7172
[tool.poetry.group.docs.dependencies]

tasks.py

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import os
2+
import shutil
3+
4+
from invoke import task
5+
6+
7+
@task
8+
def devenv(c):
9+
clean(c)
10+
cmd = "docker compose --profile all up -d"
11+
c.run(cmd)
12+
13+
14+
@task
15+
def clean(c):
16+
if os.path.isdir("build"):
17+
shutil.rmtree("build")
18+
if os.path.isdir("dist"):
19+
shutil.rmtree("dist")
20+
21+
c.run("docker compose --profile all rm -s -f")

0 commit comments

Comments
 (0)