INNER CODE UNIT · Python

latest_python_version

JasperSui/fastapi-injectable · noxfile.py:13

latest_python_version = python_versions_without_free_threaded[-1]
nox.needs_version = ">= 2025.05.01"
nox.options.sessions = [
    "pre-commit",
    "mypy",
    "tests",
    "docs-build",
]
nox.options.default_venv_backend = "uv"


def activate_virtualenv_in_precommit_hooks(session: nox.Session) -> None:
    """Activate virtualenv in hooks installed by pre-commit.

    This function patches git hooks installed by pre-commit to activate the
    session's virtual environment. This allows pre-commit to locate hooks in
    that environment when invoked from git.

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…