-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJustfile
More file actions
90 lines (71 loc) · 1.58 KB
/
Justfile
File metadata and controls
90 lines (71 loc) · 1.58 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
78
79
80
81
82
83
84
85
86
87
88
89
90
# Default recipe to display help
default:
@just --list
# Sync all dependencies
sync:
uv sync --all-groups
# Format all code
format:
rumdl fmt .
uv run ruff format .
uv run ruff check --fix .
# Auto-fix linting issues
fix:
rumdl check --fix .
uv run ruff check --fix .
# Run all lints
lint:
typos
rumdl check .
uv run ruff check .
uv run ruff format --check .
uv run ty check src tests
# Run tests
test:
uv run pytest
# Run BDD scenarios
bdd:
uv run behave
# Run both TDD and BDD suites
test-all:
uv run pytest
uv run behave
# Run tests with coverage
test-coverage:
uv run pytest --cov=uv_app --cov-report=term-missing --cov-report=html
# Run benchmarks
bench:
uv run pytest -m benchmark --benchmark-only
# Build the package
build:
uv build
# Publish the package to PyPI
publish:
uv build
uv publish
# Type check with ty
typecheck:
uv run ty check src tests
# Check for Chinese characters
check-cn:
rg --line-number --column "\p{Han}"
# Full CI check
ci: lint test-all build
# ============================================================
# Maintenance & Tools
# ============================================================
# Clean build artifacts
clean:
rm -rf dist/ .pytest_cache/ .ruff_cache/ htmlcov/ .coverage
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true
find . -type d -name "*.egg-info" -exec rm -rf {} + 2>/dev/null || true
# Install all required development tools
setup:
uv sync --all-groups
cargo install typos-cli
# Lock dependencies
lock:
uv lock
# Update all dependencies
update:
uv lock --upgrade