-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (35 loc) · 823 Bytes
/
Makefile
File metadata and controls
44 lines (35 loc) · 823 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
36
37
38
39
40
41
42
43
44
SHELL := bash
PATH := ./venv/bin:${PATH}
PYTHON = python3.13
PROJECT = metabase_mcp_server
.PHONY: all
all: test
.PHONY: install
install: sync
sync:
uv sync --extra test
.PHONY: test
test: clean install lint
uv run pytest
.PHONY: format
format:
uv run ruff check --fix .
uv run ruff format .
.PHONY: lint
lint:
uv run ruff check .
uv run ruff format --check .
uv run mypy $(PROJECT) tests
.PHONY: clean
clean:
find . -type d -name __pycache__ -exec rm -r {} +
find . -type f -name '*.py[co]' -exec rm -f {} +
find . -type f -name '*~' -exec rm -f {} +
find . -type f -name '.*~' -exec rm -f {} +
find . -type d -name "*.egg-info" -exec rm -rf {} +
rm -rf .cache .pytest_cache .ruff_cache htmlcov
rm -rf build dist site coverage.xml
rm -rf .mypy_cache
.PHONY: dev
dev:
fastmcp dev $(PROJECT)/app.py