-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
98 lines (81 loc) · 2.64 KB
/
Copy pathTaskfile.yml
File metadata and controls
98 lines (81 loc) · 2.64 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
# Lab office front desk — `task --list` to see everything.
# https://taskfile.dev (go-task)
version: '3'
vars:
PY: .venv/bin/python
env:
# benchmarks.qmd executes at site build (reads persisted JSON only)
QUARTO_PYTHON: .venv/bin/python
tasks:
default:
desc: List all lab tasks
silent: true
cmds:
- task --list
sync:
desc: Install/sync dependencies via uv
cmds:
- uv sync
test:
desc: Run the full test suite
cmds:
- '{{.PY}} -m pytest lib/tests/ {{.CLI_ARGS}}'
ride:
desc: Benchmark the specimen shelf in the terminal (pass flags after --)
cmds:
- '{{.PY}} scripts/ride.py {{.CLI_ARGS}}'
ride:full:
desc: Specimen ride including scaling and output quality analysis
cmds:
- '{{.PY}} scripts/ride.py --scaling --analyze'
analyze:
desc: Output quality panel only (entropy, avalanche, ECB canary)
cmds:
- '{{.PY}} scripts/ride.py --analyze'
bench:save:
desc: Persist a seeded benchmark run to benchmarks/ (label after --)
cmds:
- '{{.PY}} scripts/ride.py --save {{.CLI_ARGS}}'
bench:list:
desc: List saved benchmark runs
cmds:
- '{{.PY}} scripts/bench.py list'
bench:diff:
desc: Throughput delta between the latest two saved runs
cmds:
- '{{.PY}} scripts/bench.py diff {{.CLI_ARGS}}'
nb:exec:
desc: Re-execute notebooks in place, refreshing committed outputs (pass paths after --)
cmds:
- '{{.PY}} scripts/exec_notebooks.py {{.CLI_ARGS}}'
nb:check:
desc: Execute notebooks without writing outputs (CI smoke test)
cmds:
- '{{.PY}} scripts/exec_notebooks.py --check {{.CLI_ARGS}}'
site:preview:
desc: Live-preview the lab site (requires quarto — see Todo.md "Lab Office")
preconditions:
- sh: command -v quarto
msg: "quarto not installed: https://quarto.org/docs/get-started/"
cmds:
- quarto preview
site:build:
desc: Build the lab site to _site/
preconditions:
- sh: command -v quarto
msg: "quarto not installed: https://quarto.org/docs/get-started/"
cmds:
- quarto render
security:
desc: Snyk dependency scan (exports uv lock to pip format first)
preconditions:
- sh: command -v snyk
msg: "snyk CLI not installed"
cmds:
- uv export --format requirements-txt --no-hashes -o /tmp/pycryption-requirements.txt
- snyk test --file=/tmp/pycryption-requirements.txt --package-manager=pip --command={{.PY}}
clean:
desc: Remove caches and build artifacts
cmds:
- rm -rf .pytest_cache _site .quarto
- find . -path ./.venv -prune -o -name __pycache__ -type d -print0 | xargs -0 rm -rf