-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathjustfile
More file actions
36 lines (31 loc) · 1.35 KB
/
justfile
File metadata and controls
36 lines (31 loc) · 1.35 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
docs: fmt
rm -rf docs/api
mkdir -p docs/api
-yek src/biobench README.md AGENTS.md > docs/api/llms.txt
uv run mkdocs build --config-file docs/mkdocs.yml
lychee .
leaderboard: fmt
cp web/index.html docs/index.html
cd web && tailwindcss --input main.css --output ../docs/assets/dist/main.css
cd web && elm make src/Leaderboard.elm --output ../docs/assets/dist/leaderboard.js --optimize
bunx --bun uglify-js docs/assets/dist/leaderboard.js --compress 'pure_funcs=[F2,F3,F4,F5,F6,F7,F8,F9,A2,A3,A4,A5,A6,A7,A8,A9],pure_getters,keep_fargs=false,unsafe_comps,unsafe' | bunx --bun uglify-js --mangle --output docs/assets/dist/leaderboard.min.js
test: fmt
uv run pytest --cov src/biobench --cov-report term --cov-report json --json-report --json-report-file pytest.json --cov-report html -n 32 tests || true
uv run coverage-badge -o docs/assets/coverage.svg -f
uv run scripts/regressions.py
lint: fmt
uv run ruff check --fix src benchmark.py report.py
uv run scripts/ascii_only.py --in-paths benchmark.py report.py biobench/ scripts/ --fix
lychee .
fmt:
uv run ruff format --preview .
fd -e elm | xargs elm-format --yes
clean:
rm -f .coverage*
rm -f coverage.json
rm -f pytest.json
rm -rf .hypothesis/
rm -rf .ruff_cache/
rm -rf .pytest_cache/
rm -rf results-testing/
rm -rf htmlcov/