重写为 AI 情报 Agent 并接入 Jenkins 流水线
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
.PHONY: install lint test migrate seed run
|
||||
|
||||
PYTHON := /mnt/d/Python/Python39/python.exe
|
||||
PYTHON_NO_CACHE := $(PYTHON) -B
|
||||
|
||||
install:
|
||||
$(PYTHON) -m pip install -e ".[dev]"
|
||||
|
||||
lint:
|
||||
$(PYTHON_NO_CACHE) -m ruff check .
|
||||
|
||||
test:
|
||||
$(PYTHON_NO_CACHE) -m pytest
|
||||
|
||||
migrate:
|
||||
$(PYTHON_NO_CACHE) -m alembic upgrade head
|
||||
|
||||
seed:
|
||||
$(PYTHON_NO_CACHE) scripts/seed_topics.py
|
||||
|
||||
run:
|
||||
$(PYTHON_NO_CACHE) -m uvicorn app.main:app --host 127.0.0.1 --port 8010
|
||||
Reference in New Issue
Block a user