-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJustfile
More file actions
93 lines (71 loc) · 1.71 KB
/
Justfile
File metadata and controls
93 lines (71 loc) · 1.71 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
91
92
93
set dotenv-load
ARGS_TEST := env("_UV_RUN_ARGS_TEST", "")
@_:
just --list
# Run tests
[group('qa')]
test *args:
uv run {{ ARGS_TEST }} -m pytest {{ args }}
_cov *args:
uv run -m coverage {{ args }}
# Run tests and measure coverage
[group('qa')]
@cov *args:
just _cov erase
just _cov run -m pytest {{ args }}
just _cov combine
just _cov report
# just _cov html
# Run benchmarks
[group('qa')]
@bench *args:
uv run -m pytest tests/test_benchmarks.py --benchmark-only {{ args }}
# Run linters
[group('qa')]
lint *args:
uv run ruff check {{ args }} --fix
uv run ruff format {{ args }}
# Check types
[group('qa')]
typing *args:
uv run pyright {{ args }}
# Perform all checks
[group('qa')]
check-all: cov lint typing
# Update dependencies
[group('lifecycle')]
update:
uv sync --upgrade
# Ensure project virtualenv is up to date
[group('lifecycle')]
install:
uv sync
# Remove temporary files
[group('lifecycle')]
clean: clean-cache
rm -rf .venv dist build
# Clean caches and temporary files (keep .venv)
[group('lifecycle')]
clean-cache:
rm -rf .pytest_cache .mypy_cache .ruff_cache .uv .coverage* htmlcov .benchmarks .github/badges
find . -type d -name "__pycache__" -exec rm -r {} +
find . -type d -name "*.egg-info" -exec rm -r {} +
# Recreate project virtualenv from nothing
[group('lifecycle')]
fresh: clean install
# Run MCP service (HTTP)
[group('run')]
run:
uv run http
# Run MCP service (stdio)
[group('run')]
run-stdio:
uv run stdio
# Run MCP Inspector
[group('run')]
dev-http:
bunx --yes @modelcontextprotocol/inspector uv run http
# Run MCP Inspector
[group('run')]
dev-stdio:
bunx --yes @modelcontextprotocol/inspector uv run stdio