-
Notifications
You must be signed in to change notification settings - Fork 3
/
tasks.py
43 lines (40 loc) · 1.19 KB
/
tasks.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import saritasa_invocations
from invoke import Collection
import invocations
ns = Collection(
invocations.project,
invocations.docs,
invocations.ci,
saritasa_invocations.celery,
saritasa_invocations.django,
saritasa_invocations.docker,
saritasa_invocations.pytest,
saritasa_invocations.poetry,
saritasa_invocations.git,
saritasa_invocations.pre_commit,
saritasa_invocations.mypy,
saritasa_invocations.python,
)
# Configurations for run command
ns.configure(
{
"run": {
"pty": True,
"echo": True,
},
"saritasa_invocations": saritasa_invocations.Config(
project_name="django-import-export-extensions",
celery=saritasa_invocations.CelerySettings(
app="test_project.celery_app:app",
),
django=saritasa_invocations.DjangoSettings(
manage_file_path="test_project/manage.py",
settings_path="test_project.settings",
apps_path="test_project",
),
github_actions=saritasa_invocations.GitHubActionsSettings(
hosts=("postgres", "redis"),
),
),
},
)