-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yaml
More file actions
205 lines (166 loc) · 5.31 KB
/
Copy pathTaskfile.yaml
File metadata and controls
205 lines (166 loc) · 5.31 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
version: 3
tasks:
# --------------------------- SETUP ------------------------------------
activate:
desc: Activates the virtual environment in development mode
cmds:
- hatch shell
clean_ruff:
desc: "Remove all .ruff_cache directories"
cmds:
- |
find . \
-type d \
-name ".ruff_cache" \
-exec rm -rf {} +
clean_mypy:
desc: "Remove all .mypy_cache directories"
cmds:
- |
find . \
-type d \
-name ".mypy_cache" \
-exec rm -rf {} +
clean_pytest:
desc: "Remove all .pytest_cache directories"
cmds:
- |
find . \
-type d \
-name ".pytest_cache" \
-exec rm -rf {} +
clean:
desc: Cleans caching, pyc and pycache files
cmds:
- hatch run clean_pyc
- hatch run clean_pyi
- hatch run clean_pycache
- task clean_ruff
- task clean_mypy
- task clean_pytest
build_with_checks:
desc: Builds the project with checks
cmds:
- hatch run build_with_check
lint:
desc: Lints the project
cmds:
- hatch run lint
format:
desc: Formats the project
cmds:
- hatch run format
mypy:
desc: Runs the type checker only, no formatting
cmds:
- hatch run test:check_types
#---------------------------- DOCS -------------------------------
build:
desc: Builds the documentation
cmds:
- hatch run docs:build
docs_test:
desc: Executes documentation examples and validates navigation and internal links
cmds:
- hatch run docs:test
serve:
desc: Runs the documentation in live mode
cmds:
- hatch run docs:serve
# --------------------------- TEST ------------------------------------
test:
desc: Runs the suite tests
cmds:
- hatch run test:test {{ .ARGS }}
test_man:
desc: Runs the manual tests with more output details and python breakpoints allowed
cmds:
- hatch run test:test_man {{ .ARGS }}
coverage:
desc: Runs the coverage tests
cmds:
- hatch run test:coverage {{ .ARGS }}
benchmark_schema:
desc: Benchmarks canonical annotation resolution
cmds:
- hatch run test:benchmark_schema
benchmark_spec:
desc: Benchmarks Spec declaration, construction, failure, scaling, and memory
cmds:
- hatch run test:benchmark_spec
benchmark_composition:
desc: Benchmarks nested and inherited Spec construction, declaration, and memory
cmds:
- hatch run test:benchmark_composition
benchmark_validator:
desc: Benchmarks validator compilation and execution
cmds:
- hatch run test:benchmark_validator
benchmark_types:
desc: Benchmarks strict standard types, Literal, and constraints
cmds:
- hatch run test:benchmark_types
benchmark_hooks:
desc: Benchmarks custom validation and unhooked construction canaries
cmds:
- hatch run test:benchmark_hooks
benchmark_errors:
desc: Benchmarks structured error creation, rendering, projection, and allocations
cmds:
- hatch run test:benchmark_errors
benchmark_mapping:
desc: Benchmarks compiled Mapping input, aggregation, allocations, and declaration cost
cmds:
- hatch run test:benchmark_mapping
benchmark_json:
desc: Benchmarks JSON decode, Talea boundary work, full input, codecs, and allocations
cmds:
- hatch run test:benchmark_json
benchmark_serialization:
desc: Benchmarks compiled Python projection, JSON projection, encoding, and output costs
cmds:
- hatch run test:benchmark_serialization
benchmark_recursive_generics:
desc: Benchmarks generic specialization and recursive execution
cmds:
- hatch run test:benchmark_recursive_generics
benchmark_utilities:
desc: Benchmarks Contract, create_spec, introspection, and copy.replace
cmds:
- hatch run test:benchmark_utilities
benchmark_metadata:
desc: Benchmarks canonical metadata and sensitive failure redaction
cmds:
- hatch run test:benchmark_metadata
benchmark_tagged:
desc: Benchmarks tagged dispatch, boundaries, output, failure, and branch scaling
cmds:
- hatch run test:benchmark_tagged
benchmark_recursive_named:
desc: Benchmarks recursive alias and TypedDict graph resolution and execution
cmds:
- hatch run test:benchmark_recursive_named
benchmark_presence:
desc: Benchmarks derived declarations, presence-aware execution, patching, and memory
cmds:
- hatch run test:benchmark_presence
benchmark_json_schema:
desc: Benchmarks JSON Schema/OpenAPI projection, size, scaling, and memory
cmds:
- hatch run test:benchmark_json_schema
benchmark_resources:
desc: Benchmarks boundary resource enforcement, adversarial scaling, and retention
cmds:
- hatch run test:benchmark_resources
benchmark_dataclasses:
desc: Benchmarks stdlib dataclass Contract interoperability and zero-tax canaries
cmds:
- hatch run test:benchmark_dataclasses
benchmark_representation:
desc: Benchmarks canonical representation input execution and zero-tax canaries
cmds:
- hatch run test:benchmark_representation
benchmark_callables:
desc: Benchmarks compiled strict callable execution, failures, and retained artifacts
cmds:
- hatch run test:benchmark_callables