-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
53 lines (43 loc) · 1.08 KB
/
justfile
File metadata and controls
53 lines (43 loc) · 1.08 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
@_:
just --list
# Start REPL with package import
[group("dev")]
repl:
uv run python -i -c "import kintsugi as kt"
# Run mypy
[group("dev")]
types *args:
uv run -m mypy {{ args }}
# Run tests
[group("dev")]
test *args:
uv run -m pytest {{ args }}
# Run tests via nox
[group("dev")]
nox *args:
uv run -m nox {{ args }}
# Build project
[group("dev")]
build *args:
uv build {{ args }}
# Show build contents based on type
[group("dev")]
show build_type:
@if [[ {{ build_type }} == "sdist" ]]; then tar -tf ./dist/*.tar.gz; elif [[ {{ build_type }} == "whl" ]]; then unzip -l ./dist/*.whl; else echo "Invalid choice"; fi
# Delete kintsugi cache directory
[group("dev")]
[linux]
clean-cache:
rm -rf ~/.cache/kintsugi-data
# Sync dependencies
[group("janitorial")]
install *args:
uv sync {{ args }}
# Delete virtual environment and various cache folders
[group("janitorial")]
clean:
rm -rf ./.venv ./.pytest_cache ./.mypy_cache ./dist ./.nox
find . -type d -name "__pycache__" -exec rm -r {} +
# Clean and install
[group("janitorial")]
refresh: clean install