pypi-query-mcp/noxfile.py
longhao 576652571c fix: correct FastMCP interface usage and resolve lint issues
- Fix FastMCP server interface to use correct mcp.run() instead of app.run(host, port)
- Remove unnecessary host and port parameters, use standard STDIO transport
- Fix all ruff lint issues including import sorting and blank lines
- Update ruff configuration to new lint configuration format
- Fix type annotation issues using Union syntax (int | None)
- Ensure uvx pypi-query-mcp-server works correctly
- All tests pass and lint checks pass
2025-05-27 13:44:28 +08:00

24 lines
597 B
Python

# Import built-in modules
import os
import sys
# Import third-party modules
import nox
ROOT = os.path.dirname(__file__)
# Ensure pypi_query_mcp is importable.
if ROOT not in sys.path:
sys.path.append(ROOT)
# Import local modules (after sys.path setup)
from nox_actions import codetest, lint, release # noqa: E402
# Configure nox sessions
nox.session(lint.lint, name="lint")
nox.session(lint.lint_fix, name="lint-fix")
nox.session(codetest.pytest, name="pytest")
nox.session(codetest.mypy, name="mypy")
nox.session(codetest.safety, name="safety")
nox.session(release.build, name="build")