-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
45 lines (34 loc) · 893 Bytes
/
justfile
File metadata and controls
45 lines (34 loc) · 893 Bytes
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
# Default recipe
default:
@just --list
# Train a model
train:
uv run tinify train image -d dummy_dataset -e 50 --batch-size 16 --patch-size 128 128 --model mbt2018-mean
# Run all linting and type checking
lint:
uv run ruff check --fix .
uv run ruff format .
# Type check with ty (core module only)
ty:
uv run ty check tinify/
# Type check with zuban (core module only)
zuban:
uv run zuban check tinify/
# Run both type checkers
typecheck: ty zuban
# Run prek (pre-commit hooks)
prek:
uv run prek run --all-files
# Install prek hooks
prek-install:
uv run prek install
# Run tests
test:
uv run pytest tests/ -v
# Run tests with coverage
test-cov:
uv run pytest tests/ -v --cov=tinify --cov-report=term-missing
# Full check: lint, typecheck, and test
check: lint typecheck test
# Quick check: just lint and typecheck
quick-check: lint typecheck