-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtasks.py
42 lines (40 loc) · 1.23 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
# https://github.com/saritasa-nest/saritasa-python-invocations
import saritasa_invocations
from invoke import Collection
ns = Collection(
saritasa_invocations.django,
saritasa_invocations.docker,
saritasa_invocations.pip,
saritasa_invocations.pre_commit,
saritasa_invocations.pytest,
saritasa_invocations.open_api,
)
ns.configure(
{
"run": {
"pty": True,
"echo": True,
},
"saritasa_invocations": saritasa_invocations.Config(
pre_commit=saritasa_invocations.PreCommitSettings(
hooks=(
"pre-commit",
"pre-push",
"commit-msg",
)
),
git=saritasa_invocations.GitSettings(
merge_ff="true",
pull_ff="only",
),
docker=saritasa_invocations.DockerSettings(
main_containers=("db", "redis"),
),
system=saritasa_invocations.SystemSettings(
vs_code_settings_template=".vscode/recommended_settings.json",
settings_template="config/.env.local",
save_settings_from_template_to="config/.env",
),
),
},
)