pypi-query-mcp/noxfile.py

23 lines
557 B
Python
Raw Permalink Normal View History

2025-01-06 01:26:03 +08:00
# 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.
2025-01-06 01:26:03 +08:00
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
2025-01-06 01:26:03 +08:00
# Configure nox sessions
2025-01-06 01:26:03 +08:00
nox.session(lint.lint, name="lint")
nox.session(lint.lint_fix, name="lint-fix")
nox.session(codetest.pytest, name="pytest")
nox.session(codetest.safety, name="safety")
nox.session(release.build, name="build")