-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtasks.py
37 lines (34 loc) · 987 Bytes
/
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
import invoke
import saritasa_invocations
import invocations
ns = invoke.Collection( # type: ignore
invocations.project,
saritasa_invocations.docker,
saritasa_invocations.git,
saritasa_invocations.github_actions,
saritasa_invocations.pre_commit,
saritasa_invocations.python,
saritasa_invocations.system,
saritasa_invocations.poetry,
saritasa_invocations.mypy,
saritasa_invocations.pytest,
saritasa_invocations.alembic,
)
# Configurations for run command
ns.configure(
{
"run": {
"pty": True,
"echo": True,
},
"saritasa_invocations": saritasa_invocations.Config(
project_name="saritasa-sqlalchemy-tools",
docker=saritasa_invocations.DockerSettings(
main_containers=("postgres",),
),
alembic=saritasa_invocations.AlembicSettings(
migrations_folder="tests/alembic/versions",
),
),
},
)