-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathjustfile
More file actions
52 lines (38 loc) · 1.13 KB
/
justfile
File metadata and controls
52 lines (38 loc) · 1.13 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
record-tapes:
#!/usr/bin/env bash
set -euxo pipefail
# Export the function to be used by parallel
convert_tape() {
tape_file="$1"
base_name=$(basename "$tape_file" .tape)
vhs "tapes/$base_name.tape" -o "static/$base_name.gif"
}
export -f convert_tape
# Find all .tape files and run the convert_tape function in parallel
find tapes -name '*.tape' | parallel convert_tape
cov:
#!/usr/bin/env bash
set -euxo pipefail
pytest --cov-report=term-missing --cov-config=pyproject.toml --cov=markata --cov=tests tests
no-cov:
#!/usr/bin/env bash
set -euxo pipefail
pytest --cov-report=term-missing --cov-config=pyproject.toml --cov=markata --cov=tests tests --no-cov
lint:
#!/usr/bin/env bash
set -euxo pipefail
# this is what runs in ci
hatch run lint-format
build-docs:
#!/usr/bin/env bash
set -euxo pipefail
markata build
serve:
#!/usr/bin/env bash
set -euxo pipefail
python -m http.server --bind 0.0.0.0 8000 --directory markout
ruff-fix:
#!/usr/bin/env bash
set -euxo pipefail
ruff check markata --fix
lint-test: lint cov