Skip to content

Commit

Permalink
added invoke
Browse files Browse the repository at this point in the history
  • Loading branch information
amirreza8002 committed Nov 15, 2024
1 parent 9ea7bf5 commit f4716cf
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ coverage = "^7.6.1"
django-coverage-plugin = "^3.1.0"
pytest-asyncio = "^0.24.0"
pre-commit = "^4.0.1"
invoke = "^2.2.0"


[tool.poetry.group.docs.dependencies]
Expand Down
21 changes: 21 additions & 0 deletions tasks.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import os
import shutil

from invoke import task


@task
def devenv(c):
clean(c)
cmd = "docker compose --profile all up -d"
c.run(cmd)


@task
def clean(c):
if os.path.isdir("build"):
shutil.rmtree("build")
if os.path.isdir("dist"):
shutil.rmtree("dist")

c.run("docker compose --profile all rm -s -f")

0 comments on commit f4716cf

Please sign in to comment.