-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
63 lines (49 loc) · 1.19 KB
/
justfile
File metadata and controls
63 lines (49 loc) · 1.19 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
54
55
56
57
58
59
60
61
62
63
# justfile for easy development workflows.
# See development.md for docs.
# Note GitHub Actions call uv directly, not this justfile.
# list all tasks
default:
@just --list
# Install dependencies
install:
uv sync --all-extras
# Run linting
lint:
uv run python devtools/lint.py
# Run tests
test:
uv run pytest
# Upgrade dependencies
upgrade:
uv sync --upgrade --all-extras --dev
# Build package
build:
uv build
# Clean build artifacts
clean:
-rm -rf dist/
-rm -rf *.egg-info/
-rm -rf .pytest_cache/
-rm -rf .mypy_cache/
-rm -rf .venv/
-find . -type d -name "__pycache__" -exec rm -rf {} +
# Release with version bump
release bump="minor":
#!/usr/bin/env bash
set -euo pipefail
# Check working tree is clean
if ! git diff-index --quiet HEAD --; then
echo "Working tree is not clean. Please commit changes first."
exit 1
fi
# Bump version
uv version --bump {{bump}}
# Get new version
NEW_VERSION=$(uv version | awk '{print $2}')
# Add and commit changes
git add .
git commit -m "Released ${NEW_VERSION}"
# Create tag
git tag -a "v${NEW_VERSION}" -m "Released version ${NEW_VERSION}"
echo "Released version ${NEW_VERSION}"
echo "To push: git push && git push --tags"