-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
47 lines (33 loc) · 2.04 KB
/
Makefile
File metadata and controls
47 lines (33 loc) · 2.04 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
help: ## Show help docs
@sed -ne '/@sed/!s/## //p' $(MAKEFILE_LIST)
# === CI COMMANDS ===
check-types: ## Check static typing
uv run mypy --strict --ignore-missing-imports --implicit-optional --allow-untyped-decorators --disable-error-code import-untyped --disable-error-code no-redef src
# todo https://github.com/astral-sh/ty
check-style: ## Check formatting
uv run ruff check --select I src tests
uv run ruff format --check --line-length=120 src tests
fix-style: ## Fix formatting
uv run ruff check --select I --fix src tests
uv run ruff format --line-length=120 src tests
sast: ## Run static application security testing
uv run bandit --recursive src
run-tests: ## Run tests with coverage and report
uv run pytest --numprocesses=auto --cov-report=term-missing --cov-report=html --cov-fail-under=95 --cov src
check-static-all: check-types check-style sast ## Run all static checks
check-test-all: check-static-all run-tests ## Run all checks/tests
package-build: ## Build Python package
uv build
package-publish: ## Publish Python package to PyPI
uv publish
# === CUSTOM COMMANDS ===
mcp-inspector: ## Run the MCP inspector
npx @modelcontextprotocol/inspector uv run python src/jupytercad_mcp/server.py
setup-examples-env: ## Setup environment for examples
uv sync --extra=examples
mlflow-ui: ## Run the MLflow UI
uv run mlflow ui
jupyter-lab: ## Run Jupyter Lab from the examples directory
cd examples && uv run jupyter lab
example-openai-agents-client: ## Run the OpenAI agents client example
uv run python examples/openai_agents_client.py