Repository navigation
Expand file tree
/
Copy pathapp.doql.css
More file actions
151 lines (125 loc) · 3.32 KB
/
Copy pathapp.doql.css
File metadata and controls
151 lines (125 loc) · 3.32 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
app {
name: "heal";
version: "0.1.24";
}
interface[type="cli"] {
framework: click;
}
interface[type="cli"] page[name="heal"] {
}
workflow[name="install"] {
trigger: "manual";
step-1: run cmd=pip install .;
}
workflow[name="install-dev"] {
trigger: "manual";
step-1: run cmd=pip install -e .[dev];
}
workflow[name="test"] {
trigger: "manual";
step-1: run cmd=python -m pytest -v;
}
workflow[name="test-cov"] {
trigger: "manual";
step-1: run cmd=python -m pytest --cov=heal --cov-report=html --cov-report=term;
}
workflow[name="lint"] {
trigger: "manual";
step-1: run cmd=python -m flake8 heal/;
step-2: run cmd=python -m mypy heal/;
}
workflow[name="format"] {
trigger: "manual";
step-1: run cmd=python -m black heal/;
step-2: run cmd=python -m isort heal/;
}
workflow[name="clean"] {
trigger: "manual";
step-1: run cmd=rm -rf build/;
step-2: run cmd=rm -rf dist/;
step-3: run cmd=rm -rf *.egg-info/;
step-4: run cmd=rm -rf .pytest_cache/;
step-5: run cmd=rm -rf .coverage;
step-6: run cmd=rm -rf htmlcov/;
step-7: run cmd=find . -type d -name __pycache__ -exec rm -rf {} +;
step-8: run cmd=find . -type f -name "*.pyc" -delete;
}
workflow[name="build"] {
trigger: "manual";
step-1: run cmd=python -m build;
}
workflow[name="publish"] {
trigger: "manual";
step-1: run cmd=python -m twine upload dist/*;
}
workflow[name="publish-test"] {
trigger: "manual";
step-1: run cmd=python -m twine upload --repository testpypi dist/*;
}
workflow[name="dev"] {
trigger: "manual";
step-1: run cmd=pip install -e .[dev];
step-2: run cmd=pre-commit install;
}
workflow[name="cli"] {
trigger: "manual";
step-1: run cmd=heal --help;
}
workflow[name="health"] {
trigger: "manual";
step-1: run cmd=docker compose ps;
step-2: run cmd=docker compose exec app echo "Health check passed";
}
workflow[name="up"] {
trigger: "manual";
step-1: run cmd=docker compose up -d;
}
workflow[name="down"] {
trigger: "manual";
step-1: run cmd=docker compose down;
}
workflow[name="logs"] {
trigger: "manual";
step-1: run cmd=docker compose logs -f;
}
workflow[name="ps"] {
trigger: "manual";
step-1: run cmd=docker compose ps;
}
workflow[name="docker-build"] {
trigger: "manual";
step-1: run cmd=docker build -t heal:latest .;
}
workflow[name="import-makefile-hint"] {
trigger: "manual";
step-1: run cmd=echo 'Run: taskfile import Makefile to import existing targets.';
}
workflow[name="help"] {
trigger: "manual";
step-1: run cmd=echo "Available commands:";
step-2: run cmd=echo " install Install package";
step-3: run cmd=echo " install-dev Install package in development mode";
step-4: run cmd=echo " test Run tests";
step-5: run cmd=echo " lint Run linting";
step-6: run cmd=echo " format Format code";
step-7: run cmd=echo " clean Clean build artifacts";
step-8: run cmd=echo " build Build package";
step-9: run cmd=echo " publish Publish to PyPI";
}
deploy {
target: docker-compose;
compose_file: docker-compose.yml;
}
environment[name="local"] {
runtime: docker-compose;
}
workflow[name="all"] {
trigger: "manual";
step-1: run cmd=taskfile run install;
step-2: run cmd=taskfile run lint;
step-3: run cmd=taskfile run test;
}
workflow[name="fmt"] {
trigger: "manual";
step-1: run cmd=ruff format .;
}