
- 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
19 lines
588 B
Python
19 lines
588 B
Python
# Import third-party modules
|
|
import nox
|
|
|
|
from nox_actions.utils import PACKAGE_NAME
|
|
|
|
|
|
def lint(session: nox.Session) -> None:
|
|
session.install("isort", "ruff")
|
|
session.run("isort", "--check-only", PACKAGE_NAME)
|
|
session.run("ruff", "check")
|
|
|
|
|
|
def lint_fix(session: nox.Session) -> None:
|
|
session.install("isort", "ruff", "pre-commit", "autoflake")
|
|
session.run("ruff", "check", "--fix")
|
|
session.run("isort", ".")
|
|
session.run("pre-commit", "run", "--all-files")
|
|
session.run("autoflake", "--in-place", "--remove-all-unused-imports", "--remove-unused-variables")
|