-
-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathTaskfile.yml
41 lines (33 loc) · 807 Bytes
/
Taskfile.yml
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
version: '3'
vars:
PARSER_PYX: src/streaming_form_data/_parser.pyx
tasks:
annotate:
desc: Produce an HTML file with annotated Cython code
cmds:
- uv run cython --annotate {{.PARSER_PYX}} --output build/annotation.html
compile:
desc: Compile Cython extension to C
cmds:
- uv run cython {{.PARSER_PYX}}
server:
desc: Run development server for printing client input to the console
cmds:
- uv run python utils/server.py
lint:
desc: Run all the linters
deps:
- lint:ruff
- lint:mypy
lint:ruff:
desc: Lint code using Ruff
cmds:
- uv run ruff check src/ tests/ examples/
lint:mypy:
desc: Lint code using Mypy
cmds:
- uv run mypy src/
test:
desc: Run tests
cmds:
- uv run pytest tests/