-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjustfile
More file actions
52 lines (41 loc) · 1.1 KB
/
justfile
File metadata and controls
52 lines (41 loc) · 1.1 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
#!/usr/bin/env just --justfile
export PATH := join(justfile_directory(), ".env", "bin") + ":" + env_var('PATH')
set dotenv-load
@_:
just --list
[group('qa')]
test *args:
uv run -m pytest -q {{args}}
[group('qa')]
lint *args:
uv run ruff check --fix {{args}}
[group('qa')]
typing *args:
uv run ty check {{args}}
[group('qa')]
check *args:
# Run pre-commit hooks against all files
uv run pre-commit run --all-files
[group('docs')]
docs *args:
uv run zensical build {{args}}
run:
uv run python -m src.main
# Remove temporary files
[group('lifecycle')]
clean:
rm -rf .venv .pytest_cache .ruff_cache .uv-cache
find . -type d -name "*.egg-info" -exec rm -rf {} +
find . -type d -name "__pycache__" -exec rm -r {} +
# Update dependencies
[group('lifecycle')]
update:
# Upgrade all dependencies in the lock file but leave the .venv
uv lock --upgrade
uv -q export --format pylock.toml -o pylock.toml
# Ensure project virtualenv is up to date
[group('lifecycle')]
install:
uv sync --dev
uv -q export --format pylock.toml -o pylock.toml
uv run pre-commit install