-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.justfile
More file actions
73 lines (55 loc) · 1.45 KB
/
.justfile
File metadata and controls
73 lines (55 loc) · 1.45 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
# AIPM development commands
set dotenv-load
default:
@just --list
# Sync dependencies for local development
sync:
uv sync
# Install aipm globally (available in any shell)
install:
uv tool install -e .
# Uninstall aipm from global tools
uninstall:
uv tool uninstall aipm
# Install the GitHub Copilot CLI (Linux/macOS)
install-copilot:
curl -fsSL https://gh.io/copilot-install | bash
# Build the package
build:
uv build
# Run the CLI
run *args:
uv run aipm {{args}}
# Run all tests
test *args:
uv run pytest tests/ -v {{args}}
# Run a specific test file
test-file file *args:
uv run pytest {{file}} -v {{args}}
# Lint with ruff
lint:
uv run ruff check src/ tests/
# Lint and auto-fix
lint-fix:
uv run ruff check --fix src/ tests/
# Format with ruff
fmt:
uv run ruff format src/ tests/
# Check formatting without changing files
fmt-check:
uv run ruff format --check src/ tests/
# Type check with ty
typecheck:
uv run ty check src/
# Audit dependencies for vulnerabilities
audit:
uv run pip-audit
# Run all checks (lint + format check + typecheck + audit + tests)
check: lint fmt-check typecheck audit test
# Clean build artifacts and caches
clean:
rm -rf dist/ build/ .pytest_cache/ .ruff_cache/ tests/.tmp/
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true
find . -type f -name "*.pyc" -delete 2>/dev/null || true
# Run all pre-commit checks
pre-commit: fmt-check lint test