chore: update deps

This commit is contained in:
Sun-ZhenXing
2026-04-15 15:08:57 +08:00
parent 0f412cfbfd
commit 7b4c336a57
5 changed files with 496 additions and 428 deletions
+2
View File
@@ -1,6 +1,8 @@
# Environment files # Environment files
.env .env
.env.* .env.*
.*.env
!.env.example
# Python-generated files # Python-generated files
__pycache__/ __pycache__/
+2
View File
@@ -31,6 +31,8 @@
"pydantic", "pydantic",
"PYPI", "PYPI",
"pyproject", "pyproject",
"pytest",
"sdist",
"streamable", "streamable",
"trixie", "trixie",
"uvicorn", "uvicorn",
+37 -17
View File
@@ -1,54 +1,74 @@
ARGS ?= 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 .PHONY: install
install:
i: uv sync --all-extras --all-packages
uv sync --all-extras --all-packages $(ARGS)
.PHONY: dev
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: prod:
uv run --no-sync python -c "__import__('mcp_template_python.__main__').__main__.main()" $(ARGS) uv run --no-sync $(MAIN_PACKAGE_CLI)
build:
uv build $(ARGS)
clean:
rm -rf .venv .ruff_cache dist/ build/ *.egg-info $(ARGS)
.PHONY: update
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: 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-build:
docker compose build $(ARGS) docker compose build $(ARGS)
.PHONY: docker-run
docker-run: docker-run:
docker compose up -d $(ARGS) docker compose up -d $(ARGS)
.PHONY: docker-stop
docker-stop:
docker compose down $(ARGS)
.PHONY: helm-lint
helm-lint: helm-lint:
helm lint helm/mcp-template-python $(ARGS) helm lint helm/mcp-template-python $(ARGS)
.PHONY: helm-install
helm-install: helm-install:
helm install mcp-template-python helm/mcp-template-python $(ARGS) helm install mcp-template-python helm/mcp-template-python $(ARGS)
.PHONY: helm-upgrade
helm-upgrade: helm-upgrade:
helm upgrade mcp-template-python helm/mcp-template-python $(ARGS) helm upgrade mcp-template-python helm/mcp-template-python $(ARGS)
.PHONY: helm-install-prod
helm-install-prod: helm-install-prod:
helm install mcp-template-python helm/mcp-template-python -f values-production.yaml $(ARGS) helm install mcp-template-python helm/mcp-template-python -f values-production.yaml $(ARGS)
.PHONY: helm-upgrade-prod
helm-upgrade-prod: helm-upgrade-prod:
helm upgrade mcp-template-python helm/mcp-template-python -f values-production.yaml $(ARGS) helm upgrade mcp-template-python helm/mcp-template-python -f values-production.yaml $(ARGS)
.PHONY: helm-uninstall
helm-uninstall: helm-uninstall:
helm uninstall mcp-template-python $(ARGS) helm uninstall mcp-template-python $(ARGS)
.PHONY: rename
rename: rename:
uv run python tools/rename.py $(ARGS) uv run python tools/rename.py $(ARGS)
%:
@true
+1
View File
@@ -35,6 +35,7 @@ ban-relative-imports = "parents"
[dependency-groups] [dependency-groups]
dev = [ dev = [
"pytest>=9.0.3",
"ruff>=0.12.7", "ruff>=0.12.7",
"ty>=0.0.15", "ty>=0.0.15",
] ]
Generated
+454 -411
View File
File diff suppressed because it is too large Load Diff