INNER CODE UNIT · Python

lint

redis/fastapi-redis-sdk · noxfile.py:47

def lint(session: nox.Session) -> None:
    """Run ruff linter and formatter checks."""
    uv_sync(session, "--only-group", "lint")
    session.run("ruff", "check", *SOURCES)
    session.run("ruff", "format", "--check", *SOURCES)


# ---------------------------------------------------------------------------
# Type checking
# ---------------------------------------------------------------------------
@nox.session(python=PYTHON_DEFAULT)
def typecheck(session: nox.Session) -> None:
    """Run mypy on source code."""
    uv_sync(session, "--extra", "otel", "--no-default-groups", "--group", "typecheck")
    session.run("mypy", "src/")


# ---------------------------------------------------------------------------

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…