We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ea7bf5 commit f4716cfCopy full SHA for f4716cf
pyproject.toml
@@ -66,6 +66,7 @@ coverage = "^7.6.1"
66
django-coverage-plugin = "^3.1.0"
67
pytest-asyncio = "^0.24.0"
68
pre-commit = "^4.0.1"
69
+invoke = "^2.2.0"
70
71
72
[tool.poetry.group.docs.dependencies]
tasks.py
@@ -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
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