-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.doql.css
More file actions
231 lines (202 loc) · 7.85 KB
/
app.doql.css
File metadata and controls
231 lines (202 loc) · 7.85 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
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
app {
name: "Untitled";
version: "0.1.41";
}
workflow[name="install"] {
trigger: "manual";
step-1: run cmd=echo "${YELLOW}Installing package in development mode...${RESET}";
step-2: run cmd=poetry install --with dev;
}
workflow[name="install-prod"] {
trigger: "manual";
step-1: run cmd=echo "${YELLOW}Installing production dependencies...${RESET}";
step-2: run cmd=poetry install --only main;
}
workflow[name="test"] {
trigger: "manual";
step-1: run cmd=echo "${YELLOW}Running tests...${RESET}";
step-2: run cmd=${PYTEST} -v $(ARGS) tests/;
}
workflow[name="test-cov"] {
trigger: "manual";
step-1: run cmd=echo "${YELLOW}Running tests with coverage...${RESET}";
step-2: run cmd=${PYTEST} -v --cov=${PACKAGE} --cov-report=term-missing --cov-report=xml --cov-report=html tests/;
}
workflow[name="lint"] {
trigger: "manual";
step-1: run cmd=echo "${YELLOW}Running linters...${RESET}";
step-2: run cmd=${BLACK} --check ${PACKAGE} tests/;
step-3: run cmd=${ISORT} --check-only ${PACKAGE} tests/;
step-4: run cmd=${FLAKE8} ${PACKAGE} tests/;
}
workflow[name="format"] {
trigger: "manual";
step-1: run cmd=echo "${YELLOW}Formatting code...${RESET}";
step-2: run cmd=${BLACK} ${PACKAGE} tests/;
step-3: run cmd=${ISORT} ${PACKAGE} tests/;
}
workflow[name="format-check"] {
trigger: "manual";
step-1: run cmd=echo "${YELLOW}Checking code formatting...${RESET}";
step-2: run cmd=${BLACK} --check ${PACKAGE} tests/;
step-3: run cmd=${ISORT} --check-only ${PACKAGE} tests/;
}
workflow[name="typecheck"] {
trigger: "manual";
step-1: run cmd=echo "${YELLOW}Running type checking...${RESET}";
step-2: run cmd=${MYPY} ${PACKAGE} tests/;
}
workflow[name="check"] {
trigger: "manual";
step-1: depend target=lint;
step-2: depend target=format-check;
step-3: depend target=typecheck;
step-4: depend target=test;
}
workflow[name="clean"] {
trigger: "manual";
step-1: run cmd=echo "${YELLOW}Cleaning...${RESET}";
step-2: run cmd=rm -rf \;
step-3: run cmd=.pytest_cache/ \;
step-4: run cmd=.mypy_cache/ \;
step-5: run cmd=.coverage \;
step-6: run cmd=.coverage.* \;
step-7: run cmd=coverage.xml \;
step-8: run cmd=htmlcov/ \;
step-9: run cmd=dist/ \;
step-10: run cmd=build/ \;
step-11: run cmd=*.egg-info/ \;
step-12: run cmd=__pycache__/ \;
step-13: run cmd=*/__pycache__/ \;
step-14: run cmd=*/*/__pycache__/ \;
step-15: run cmd=.python-version \;
step-16: run cmd=.mypy_cache \;
step-17: run cmd=.pytest_cache \;
step-18: run cmd=.eggs \;
step-19: run cmd=.tox;
}
workflow[name="build"] {
trigger: "manual";
step-1: run cmd=echo "${YELLOW}Building package...${RESET}";
step-2: run cmd=poetry build;
}
workflow[name="publish"] {
trigger: "manual";
step-1: run cmd=#@echo "${YELLOW}Publishing to PyPI...${RESET}";
step-2: run cmd=poetry version patch;
step-3: run cmd=poetry publish --build;
}
workflow[name="docs"] {
trigger: "manual";
step-1: run cmd=echo "${YELLOW}Building documentation...${RESET}";
step-2: run cmd=poetry run mkdocs build;
}
workflow[name="serve"] {
trigger: "manual";
step-1: run cmd=echo "${YELLOW}Serving documentation at http://localhost:8000${RESET}";
step-2: run cmd=poetry run mkdocs serve;
}
workflow[name="pre-commit"] {
trigger: "manual";
step-1: run cmd=echo "${YELLOW}Installing pre-commit hooks...${RESET}";
step-2: run cmd=poetry run pre-commit install;
}
workflow[name="bump-version"] {
trigger: "manual";
step-1: run cmd=if [ -z "$(PART)" ]; then \;
step-2: run cmd=echo "${YELLOW}Error: PART variable not set. Usage: make bump-version PART=<major|minor|patch>${RESET}"; \;
step-3: run cmd=exit 1; \;
step-4: run cmd=fi;
step-5: run cmd=echo "${YELLOW}Bumping $(PART) version...${RESET}";
step-6: run cmd=poetry version $(PART);
step-7: run cmd=git add pyproject.toml;
step-8: run cmd=git commit -m "Bump version to $(shell poetry version -s)";
step-9: run cmd=git tag -a v$(shell poetry version -s) -m "Version $(shell poetry version -s)";
step-10: run cmd=echo "${GREEN}Version bumped to $(shell poetry version -s)${RESET}";
}
workflow[name="safety"] {
trigger: "manual";
step-1: run cmd=echo "${YELLOW}Checking for security vulnerabilities...${RESET}";
step-2: run cmd=poetry run safety check --full-report;
}
workflow[name="dep-update"] {
trigger: "manual";
step-1: run cmd=echo "${YELLOW}Updating dependencies...${RESET}";
step-2: run cmd=poetry update;
}
workflow[name="info"] {
trigger: "manual";
step-1: run cmd=echo "${YELLOW}Package Information:${RESET}";
step-2: run cmd=poetry version;
step-3: run cmd=echo "\n${YELLOW}Dependencies:${RESET}";
step-4: run cmd=poetry show --tree;
}
workflow[name="release"] {
trigger: "manual";
step-1: run cmd=echo "${YELLOW}Creating release...${RESET}";
step-2: run cmd=git push origin main --tags;
step-3: run cmd=poetry publish --build;
}
workflow[name="scan"] {
trigger: "manual";
step-1: run cmd=echo "${YELLOW}Running weekly scan...${RESET}";
step-2: run cmd=poetry run weekly scan $(ROOT) -o $(OUT);
}
workflow[name="scan-since"] {
trigger: "manual";
step-1: run cmd=echo "${YELLOW}Running weekly scan with since filter...${RESET}";
step-2: run cmd=poetry run weekly scan $(ROOT) -o $(OUT) --since "$(SINCE)";
}
workflow[name="fmt"] {
trigger: "manual";
step-1: run cmd=ruff format .;
}
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="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 "";
step-2: run cmd=echo "${YELLOW}Usage:${RESET} make ${GREEN}<target>${RESET}";
step-3: run cmd=echo "";
step-4: run cmd=echo "${YELLOW}Available targets:${RESET}";
step-5: run cmd=echo " ${GREEN}install${RESET} - Install package in development mode;
step-6: run cmd=echo " ${GREEN}install-prod${RESET} - Install only production dependencies";
step-7: run cmd=echo " ${GREEN}test${RESET} - Run tests";
step-8: run cmd=echo " ${GREEN}test-cov${RESET} - Run tests with coverage report";
step-9: run cmd=echo " ${GREEN}lint${RESET} - Run all linters (black, isort, flake8)";
step-10: run cmd=echo " ${GREEN}format${RESET} - Format code";
step-11: run cmd=echo " ${GREEN}format-check${RESET} - Check code formatting";
step-12: run cmd=echo " ${GREEN}typecheck${RESET} - Run static type checking";
step-13: run cmd=echo " ${GREEN}check${RESET} - Run all checks (lint, format-check,;
step-14: run cmd=echo " ${GREEN}clean${RESET} - Remove build artifacts and cache";
step-15: run cmd=echo " ${GREEN}build${RESET} - Build package";
step-16: run cmd=echo " ${GREEN}publish${RESET} - Publish package to PyPI";
step-17: run cmd=echo " ${GREEN}docs${RESET} - Build documentation";
step-18: run cmd=echo " ${GREEN}serve${RESET} - Serve documentation locally";
step-19: run cmd=echo " ${GREEN}pre-commit${RESET} - Install pre-commit hooks";
step-20: run cmd=echo " ${GREEN}bump-version${RESET} - Bump version (make bump-version PART=patch)";
step-21: run cmd=echo " ${GREEN}safety${RESET} - Check for security vulnerabilities";
step-22: run cmd=echo " ${GREEN}dep-update${RESET} - Update dependencies";
step-23: run cmd=echo " ${GREEN}info${RESET} - Show package information";
step-24: run cmd=echo " ${GREEN}release${RESET} - Create a new release (tag and publish)";
step-25: run cmd=echo " ${GREEN}help${RESET} - Show this help message";
}
deploy {
target: makefile;
}
environment[name="local"] {
runtime: makefile;
}
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;
}