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
This commit is contained in:
parent
030b3a2607
commit
576652571c
12 changed files with 38 additions and 51 deletions
|
|
@ -5,18 +5,14 @@ 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 third-party modules
|
||||
from nox_actions import codetest # noqa: E402
|
||||
from nox_actions import lint # noqa: E402
|
||||
from nox_actions import release # noqa: E402
|
||||
|
||||
# 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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue