-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathapp.doql.css
More file actions
212 lines (177 loc) · 5.99 KB
/
app.doql.css
File metadata and controls
212 lines (177 loc) · 5.99 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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
app {
name: "code2flow";
version: "0.2.1";
}
entity[name="Users"] {
id: serial;
username: string;
}
entity[name="Products"] {
id: serial;
sku: string;
}
entity[name="Orders"] {
id: serial;
user_id: int;
}
entity[name="OrderItems"] {
id: serial;
order_id: int;
}
interface[type="cli"] {
framework: argparse;
}
interface[type="cli"] page[name="code2flow"] {
}
workflow[name="install"] {
trigger: "manual";
step-1: run cmd=pip install -e .;
step-2: run cmd=echo "✓ code2flow installed";
}
workflow[name="dev-install"] {
trigger: "manual";
step-1: run cmd=pip install -e ".[dev]";
step-2: run cmd=echo "✓ code2flow installed with dev dependencies";
}
workflow[name="test"] {
trigger: "manual";
step-1: run cmd=python -m pytest tests/ -v --tb=short 2>/dev/null || echo "No tests yet - create tests/ directory";
}
workflow[name="test-cov"] {
trigger: "manual";
step-1: run cmd=python -m pytest tests/ --cov=code2flow --cov-report=html --cov-report=term 2>/dev/null || echo "No tests yet";
}
workflow[name="lint"] {
trigger: "manual";
step-1: run cmd=python -m flake8 code2flow/ --max-line-length=100 --ignore=E203,W503 2>/dev/null || echo "flake8 not installed";
step-2: run cmd=python -m black --check code2flow/ 2>/dev/null || echo "black not installed";
step-3: run cmd=echo "✓ Linting complete";
}
workflow[name="format"] {
trigger: "manual";
step-1: run cmd=python -m black code2flow/ --line-length=100 2>/dev/null || echo "black not installed, run: pip install black";
step-2: run cmd=echo "✓ Code formatted";
}
workflow[name="typecheck"] {
trigger: "manual";
step-1: run cmd=python -m mypy code2flow/ --ignore-missing-imports 2>/dev/null || echo "mypy not installed";
}
workflow[name="run"] {
trigger: "manual";
step-1: run cmd=python -m code2flow ../python/stts_core -v -o ./output;
}
workflow[name="analyze"] {
trigger: "manual";
step-1: run cmd=echo "✓ Analysis complete";
}
workflow[name="build"] {
trigger: "manual";
step-1: run cmd=rm -rf build/ dist/ *.egg-info;
step-2: run cmd=python setup.py sdist bdist_wheel;
step-3: run cmd=echo "✓ Build complete - check dist/";
}
workflow[name="clean"] {
trigger: "manual";
step-1: run cmd=rm -rf build/ dist/ *.egg-info;
step-2: run cmd=rm -rf .pytest_cache .coverage htmlcov/;
step-3: run cmd=rm -rf code2flow/__pycache__ code2flow/*/__pycache__;
step-4: run cmd=find . -name "*.pyc" -delete 2>/dev/null || true;
step-5: run cmd=find . -name "__pycache__" -type d -exec rm -rf {} + 2>/dev/null || true;
step-6: run cmd=echo "✓ Cleaned build artifacts";
}
workflow[name="check"] {
trigger: "manual";
step-1: run cmd=echo "✓ All checks passed";
}
workflow[name="mermaid-png"] {
trigger: "manual";
step-1: run cmd=python mermaid_to_png.py --batch output output;
}
workflow[name="install-mermaid"] {
trigger: "manual";
step-1: run cmd=npm install -g @mermaid-js/mermaid-cli;
}
workflow[name="check-mermaid"] {
trigger: "manual";
step-1: run cmd=echo "Checking available Mermaid renderers...";
step-2: run cmd=which mmdc > /dev/null && echo "✓ mmdc (mermaid-cli)" || echo "✗ mmdc (run: npm install -g @mermaid-js/mermaid-cli)";
step-3: run cmd=which npx > /dev/null && echo "✓ npx (for @mermaid-js/mermaid-cli)" || echo "✗ npx (install Node.js)";
step-4: run cmd=which puppeteer > /dev/null && echo "✓ puppeteer" || echo "✗ puppeteer (run: npm install -g puppeteer)";
}
workflow[name="clean-png"] {
trigger: "manual";
step-1: run cmd=rm -f output/*.png;
step-2: run cmd=echo "✓ Cleaned PNG files";
}
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 code2flow: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 "code2flow - Python Code Flow Analysis Tool";
step-2: run cmd=echo "";
step-3: run cmd=echo "Available targets:";
step-4: run cmd=echo " make install - Install package";
step-5: run cmd=echo " make dev-install - Install with development dependencies";
step-6: run cmd=echo " make test - Run test suite";
step-7: run cmd=echo " make lint - Run linters (flake8, black --check)";
step-8: run cmd=echo " make format - Format code with black";
step-9: run cmd=echo " make typecheck - Run mypy type checking";
step-10: run cmd=echo " make clean - Remove build artifacts";
step-11: run cmd=echo " make analyze - Run analysis on sample (python folder)";
step-12: run cmd=echo " make run - Run with example arguments";
step-13: run cmd=echo " make build - Build distribution packages";
step-14: run cmd=echo " make mermaid-png - Generate PNG from all Mermaid files";
step-15: run cmd=echo " make install-mermaid - Install Mermaid CLI renderer";
step-16: run cmd=echo " make check-mermaid - Check available Mermaid renderers";
step-17: run cmd=echo "";
}
deploy {
target: docker-compose;
compose_file: docker-compose.yml;
}
environment[name="local"] {
runtime: docker-compose;
env_file: ".env";
}
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 .;
}
/* auto-added stub: define where entities are persisted */
database[name="default"] {
engine: "sqlite";
path: "data/app.db";
}