-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
77 lines (62 loc) · 1.57 KB
/
justfile
File metadata and controls
77 lines (62 loc) · 1.57 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# Default recipe to run when just is called without arguments
default:
@just --list
# Create virtual environment and install dependencies
venv:
pip install uv
uv venv
source .venv/bin/activate
@just install
# Install dependencies
install:
uv pip install -e ".[dev]"
uv sync --all-extras
# Update dependencies
update:
uv pip install -e ".[dev]"
uv lock --upgrade
# Run tests
test:
uv run pytest
# Run all tests
test-all:
@just test
@just format
@just lint
@just typecheck
# Run linting
lint:
uv run ruff check .
uv run ruff format --check .
# Format code
format:
uv run ruff format .
# Run type checking
typecheck:
uv run basedpyright
# Generate SDK from localhost API
generate-sdk url="http://localhost:8000/openapi.json":
bin/generate-sdk.sh {{url}}
# Build python package locally (for testing)
build-package:
python -m build
# Create a feature branch
create-feature branch_type="feature" branch_name="" base_branch="main" update="yes":
bin/create-feature.sh {{branch_type}} {{branch_name}} {{base_branch}} {{update}}
# Version management
create-release type="patch":
bin/create-release.sh {{type}}
# Create PR
create-pr target_branch="main" claude_review="true":
bin/create-pr.sh {{target_branch}} {{claude_review}}
# Clean up development artifacts
clean:
rm -rf .pytest_cache
rm -rf .ruff_cache
rm -rf __pycache__
rm -rf robosystems_client.egg-info
find . -type d -name "__pycache__" -exec rm -rf {} +
find . -type f -name "*.pyc" -delete
# Show help
help:
@just --list