-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.doql.css
More file actions
141 lines (120 loc) · 3.96 KB
/
Copy pathapp.doql.css
File metadata and controls
141 lines (120 loc) · 3.96 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
app {
name: "pyqual";
version: "0.1.139";
}
interface[type="api"] {
type: rest;
framework: fastapi;
}
interface[type="cli"] {
framework: argparse;
}
interface[type="cli"] page[name="pyqual"] {
}
workflow[name="install"] {
trigger: "manual";
step-1: run cmd=pip3 install -e .;
}
workflow[name="install-dev"] {
trigger: "manual";
step-1: run cmd=pip3 install -e ".[dev]";
}
workflow[name="test"] {
trigger: "manual";
step-1: run cmd=python3 -m pytest;
}
workflow[name="lint"] {
trigger: "manual";
step-1: run cmd=ruff check .;
step-2: run cmd=mypy pyqual;
}
workflow[name="format"] {
trigger: "manual";
step-1: run cmd=ruff format .;
}
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=find . -type d -name __pycache__ -not -path "./.venv/*" -exec rm -rf {} + 2>/dev/null || true;
step-5: run cmd=find . -type f -name "*.pyc" -not -path "./.venv/*" -delete;
}
workflow[name="build"] {
trigger: "manual";
step-1: run cmd=python3 -m build;
}
workflow[name="bump-patch"] {
trigger: "manual";
step-1: run cmd=echo "Bumping patch version...";
step-2: run cmd=CURRENT=$$(cat VERSION); \;
step-3: run cmd=MAJOR=$$(echo $$CURRENT | cut -d. -f1); \;
step-4: run cmd=MINOR=$$(echo $$CURRENT | cut -d. -f2); \;
step-5: run cmd=PATCH=$$(echo $$CURRENT | cut -d. -f3); \;
step-6: run cmd=NEW_PATCH=$$((PATCH + 1)); \;
step-7: run cmd=NEW_VERSION="$$MAJOR.$$MINOR.$$NEW_PATCH"; \;
step-8: run cmd=echo "$$NEW_VERSION" > VERSION; \;
step-9: run cmd=sed -i "s/version = \"$$CURRENT\"/version = \"$$NEW_VERSION\"/" pyproject.toml; \;
step-10: run cmd=echo "Version bumped: $$CURRENT -> $$NEW_VERSION";
}
workflow[name="bump-minor"] {
trigger: "manual";
step-1: run cmd=echo "Bumping minor version...";
step-2: run cmd=CURRENT=$$(cat VERSION); \;
step-3: run cmd=MAJOR=$$(echo $$CURRENT | cut -d. -f1); \;
step-4: run cmd=MINOR=$$(echo $$CURRENT | cut -d. -f2); \;
step-5: run cmd=NEW_MINOR=$$((MINOR + 1)); \;
step-6: run cmd=NEW_VERSION="$$MAJOR.$$NEW_MINOR.0"; \;
step-7: run cmd=echo "$$NEW_VERSION" > VERSION; \;
step-8: run cmd=sed -i "s/version = \"$$CURRENT\"/version = \"$$NEW_VERSION\"/" pyproject.toml; \;
step-9: run cmd=echo "Version bumped: $$CURRENT -> $$NEW_VERSION";
}
workflow[name="publish"] {
trigger: "manual";
step-1: run cmd=python3 -m twine upload dist/* --skip-existing;
}
workflow[name="upload"] {
trigger: "manual";
step-1: depend target=publish;
}
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 "Available targets:";
step-2: run cmd=echo " install Install the package";
step-3: run cmd=echo " install-dev Install the package with dev dependencies";
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 the package";
step-9: run cmd=echo " bump-patch Bump patch version (0.1.2 -> 0.1.3)";
step-10: run cmd=echo " bump-minor Bump minor version (0.1.2 -> 0.2.0)";
step-11: run cmd=echo " publish Bump version, build and publish to PyPI";
step-12: run cmd=echo " upload Upload to PyPI (alias for publish)";
}
deploy {
target: docker;
}
environment[name="local"] {
runtime: docker;
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;
}