feat: Complete PyPI Query MCP Server Implementation (#3)

Merge pull request implementing complete PyPI query MCP server with comprehensive features and CI/CD pipeline.
This commit is contained in:
Hal 2025-05-27 11:14:49 +08:00 committed by GitHub
parent b1a1a6866d
commit 030b3a2607
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
33 changed files with 3238 additions and 246 deletions

View file

@ -8,10 +8,26 @@ from nox_actions.utils import THIS_ROOT
def pytest(session: nox.Session) -> None:
"""Run pytest with coverage reporting."""
session.install(".")
session.install("pytest", "pytest_cov", "pytest_mock")
session.install("pytest", "pytest-cov", "pytest-mock", "pytest-asyncio")
test_root = os.path.join(THIS_ROOT, "tests")
session.run("pytest", f"--cov={PACKAGE_NAME}",
"--cov-report=xml:coverage.xml",
"--cov-report=term-missing",
f"--rootdir={test_root}",
env={"PYTHONPATH": THIS_ROOT.as_posix()})
def mypy(session: nox.Session) -> None:
"""Run mypy type checking."""
session.install(".")
session.install("mypy", "types-requests")
session.run("mypy", PACKAGE_NAME, "--ignore-missing-imports")
def safety(session: nox.Session) -> None:
"""Run safety security checks."""
session.install(".")
session.install("safety")
session.run("safety", "check", "--json")

View file

@ -10,6 +10,13 @@ from nox_actions.utils import PACKAGE_NAME
from nox_actions.utils import THIS_ROOT
def build(session: nox.Session) -> None:
"""Build Python package distributions."""
session.install("build", "twine")
session.run("python", "-m", "build")
session.run("twine", "check", "dist/*")
@nox.session(name="build-exe", reuse_venv=True)
def build_exe(session: nox.Session) -> None:
parser = argparse.ArgumentParser(prog="nox -s build-exe --release")

View file

@ -2,7 +2,7 @@
from pathlib import Path
PACKAGE_NAME = ""
PACKAGE_NAME = "pypi_query_mcp"
THIS_ROOT = Path(__file__).parent.parent
PROJECT_ROOT = THIS_ROOT.parent