Files
PolyGateway/Makefile
T
iomgaa 3058f4c744 chore: bootstrap project scaffolding
Add architecture doc (research-wiki/ARCHITECTURE.md), CLAUDE.md with
tiered SOP for Fable 5, adapted .claude skills/hooks/settings, package
skeleton (src/polygateway), pyproject with import-linter contracts,
Makefile, .env.example and smoke test.
2026-07-20 00:49:10 -04:00

32 lines
1.1 KiB
Makefile
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
.PHONY: install test lint format check ci wiki
ENV := PolyGateway
install:
conda run -n $(ENV) pip install -e ".[redis,postgres,structured,dev]"
test:
conda run -n $(ENV) pytest tests/ --cov=src/polygateway --cov-report=term-missing
# lint-imports 在 M1 模块落地前门控跳过(契约见 pyproject.toml [tool.importlinter]
lint:
conda run -n $(ENV) ruff check src/ tests/ --fix
@conda run -n $(ENV) python -c "import polygateway.ports" 2>/dev/null \
&& conda run -n $(ENV) lint-imports \
|| echo "import-linter: M1 模块未创建,跳过(契约已在 pyproject.toml 声明)"
format:
conda run -n $(ENV) ruff format src/ tests/
check:
conda run -n $(ENV) ruff format --check src/ tests/
conda run -n $(ENV) ruff check src/ tests/
@conda run -n $(ENV) python -c "import polygateway.ports" 2>/dev/null \
&& conda run -n $(ENV) lint-imports \
|| echo "import-linter: M1 模块未创建,跳过(契约已在 pyproject.toml 声明)"
ci: check test
wiki:
conda run -n $(ENV) python3 .claude/tools/research_wiki.py rebuild_index research-wiki/