-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (26 loc) · 710 Bytes
/
Makefile
File metadata and controls
35 lines (26 loc) · 710 Bytes
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
.PHONY: test format lint typecheck check install-pre-commit
.DEFAULT_GOAL := all
install:
uv pip install --upgrade '.[dev,test]'
test:
uv run pytest
format:
uv run isort .
uv run black .
uv run mypy --install-types --non-interactive src/mcp_shell_server tests
uv run ruff check --fix .
lint:
uv run black --check .
uv run isort --check .
uv run ruff check .
typecheck:
uv sync --group dev --extra test
uv run mypy src/mcp_shell_server tests
coverage:
uv run pytest --cov=src/mcp_shell_server --cov-report=xml --cov-report=term-missing tests
# Run all checks required before pushing
check: lint typecheck
fix: check format
all: format check coverage
install-pre-commit:
@.wkm/bin/install