mirror of
https://github.com/Sun-ZhenXing/mcp-template-python.git
synced 2026-05-06 14:08:56 +00:00
chore: update deps
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
# Environment files
|
||||
.env
|
||||
.env.*
|
||||
.*.env
|
||||
!.env.example
|
||||
|
||||
# Python-generated files
|
||||
__pycache__/
|
||||
|
||||
Vendored
+2
@@ -31,6 +31,8 @@
|
||||
"pydantic",
|
||||
"PYPI",
|
||||
"pyproject",
|
||||
"pytest",
|
||||
"sdist",
|
||||
"streamable",
|
||||
"trixie",
|
||||
"uvicorn",
|
||||
|
||||
@@ -1,54 +1,74 @@
|
||||
ARGS ?=
|
||||
MAIN_PACKAGE_CLI = uni-resource-api
|
||||
|
||||
.PHONY: i dev prod build clean update lint docker-build docker-run helm-install helm-upgrade helm-uninstall helm-lint rename
|
||||
|
||||
i:
|
||||
uv sync --all-extras --all-packages $(ARGS)
|
||||
.PHONY: install
|
||||
install:
|
||||
uv sync --all-extras --all-packages
|
||||
|
||||
.PHONY: dev
|
||||
dev:
|
||||
uv run --no-sync python -c "__import__('mcp_template_python.__main__').__main__.dev()" $(ARGS) || echo shutdown
|
||||
uv run $(MAIN_PACKAGE_CLI) --dev
|
||||
|
||||
.PHONY: prod
|
||||
prod:
|
||||
uv run --no-sync python -c "__import__('mcp_template_python.__main__').__main__.main()" $(ARGS)
|
||||
|
||||
build:
|
||||
uv build $(ARGS)
|
||||
|
||||
clean:
|
||||
rm -rf .venv .ruff_cache dist/ build/ *.egg-info $(ARGS)
|
||||
uv run --no-sync $(MAIN_PACKAGE_CLI)
|
||||
|
||||
.PHONY: update
|
||||
update:
|
||||
uv sync --all-extras --all-packages -U $(ARGS)
|
||||
uv sync --all-extras --all-packages -U
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
rm -rf .venv && rm -rf dist/ && rm -rf build/ && rm -rf .ruff_cache/
|
||||
|
||||
.PHONY: test
|
||||
test:
|
||||
uv run pytest tests -v
|
||||
|
||||
.PHONY: lint
|
||||
lint:
|
||||
uv run ruff check . && uv run ty check .
|
||||
uv run ruff check . && uv run ty check . --ignore invalid-return-type
|
||||
|
||||
.PHONY: format
|
||||
format:
|
||||
uv run ruff format .
|
||||
|
||||
.PHONY: docker-build
|
||||
docker-build:
|
||||
docker compose build $(ARGS)
|
||||
|
||||
.PHONY: docker-run
|
||||
docker-run:
|
||||
docker compose up -d $(ARGS)
|
||||
|
||||
.PHONY: docker-stop
|
||||
docker-stop:
|
||||
docker compose down $(ARGS)
|
||||
|
||||
.PHONY: helm-lint
|
||||
helm-lint:
|
||||
helm lint helm/mcp-template-python $(ARGS)
|
||||
|
||||
.PHONY: helm-install
|
||||
helm-install:
|
||||
helm install mcp-template-python helm/mcp-template-python $(ARGS)
|
||||
|
||||
.PHONY: helm-upgrade
|
||||
helm-upgrade:
|
||||
helm upgrade mcp-template-python helm/mcp-template-python $(ARGS)
|
||||
|
||||
.PHONY: helm-install-prod
|
||||
helm-install-prod:
|
||||
helm install mcp-template-python helm/mcp-template-python -f values-production.yaml $(ARGS)
|
||||
|
||||
.PHONY: helm-upgrade-prod
|
||||
helm-upgrade-prod:
|
||||
helm upgrade mcp-template-python helm/mcp-template-python -f values-production.yaml $(ARGS)
|
||||
|
||||
.PHONY: helm-uninstall
|
||||
helm-uninstall:
|
||||
helm uninstall mcp-template-python $(ARGS)
|
||||
|
||||
.PHONY: rename
|
||||
rename:
|
||||
uv run python tools/rename.py $(ARGS)
|
||||
|
||||
%:
|
||||
@true
|
||||
|
||||
@@ -35,6 +35,7 @@ ban-relative-imports = "parents"
|
||||
|
||||
[dependency-groups]
|
||||
dev = [
|
||||
"pytest>=9.0.3",
|
||||
"ruff>=0.12.7",
|
||||
"ty>=0.0.15",
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user