mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-09 15:19:10 +02:00
33 lines
No EOL
1 KiB
Makefile
33 lines
No EOL
1 KiB
Makefile
# Build the project
|
|
build:
|
|
uv sync
|
|
|
|
# Run tests
|
|
test: build
|
|
uv run --frozen pytest -xvs tests
|
|
|
|
# Run ty type checker on all files
|
|
typecheck:
|
|
uv run --frozen ty check
|
|
|
|
# Serve documentation locally
|
|
docs:
|
|
cd docs && npx --yes mint@latest dev
|
|
|
|
# Check for broken links in documentation
|
|
docs-broken-links:
|
|
cd docs && npx --yes mint@latest broken-links
|
|
|
|
# Generate API reference documentation for all modules
|
|
api-ref-all:
|
|
uvx --with-editable . --refresh-package mdxify mdxify@latest --all --root-module fastmcp --nav-output docs/python-sdk-pages.json --exclude fastmcp.contrib
|
|
# Generate API reference for specific modules (e.g., just api-ref prefect.flows prefect.tasks)
|
|
api-ref *MODULES:
|
|
uvx --with-editable . --refresh-package mdxify mdxify@latest {{MODULES}} --root-module fastmcp --nav-output docs/python-sdk-pages.json
|
|
|
|
# Clean up API reference documentation
|
|
api-ref-clean:
|
|
rm -rf docs/python-sdk
|
|
|
|
copy-context:
|
|
uvx --with-editable . --refresh-package copychat copychat@latest src/ docs/ -x changelog.mdx -x python-sdk/ -v
|