Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 5 additions & 15 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,6 @@

DIR = Path(__file__).parent.resolve()

nox.options.sessions = [
"lint",
"pylint",
"generate_schema",
"readme",
"build_api_docs",
"tests",
"test_doc_examples",
]


@nox.session(reuse_venv=True)
def lint(session: nox.Session) -> None:
Expand Down Expand Up @@ -122,7 +112,7 @@ def readme(session: nox.Session) -> None:
session.run("cog", "-P", *args, "README.md")


@nox.session(venv_backend="uv")
@nox.session(venv_backend="uv", default=False)
def minimums(session: nox.Session) -> None:
"""
Test the minimum versions of dependencies.
Expand All @@ -135,7 +125,7 @@ def minimums(session: nox.Session) -> None:
)


@nox.session(reuse_venv=True)
@nox.session(reuse_venv=True, default=False)
def docs(session: nox.Session) -> None:
"""
Build the docs. Use "--non-interactive" to avoid serving. Pass "-b linkcheck" to check links.
Expand Down Expand Up @@ -187,7 +177,7 @@ def build_api_docs(session: nox.Session) -> None:
)


@nox.session
@nox.session(default=False)
def build(session: nox.Session) -> None:
"""
Build an SDist and wheel.
Expand Down Expand Up @@ -226,7 +216,7 @@ def test_doc_examples(session: nox.Session, example: str) -> None:
session.run("pytest")


@nox.session
@nox.session(default=False)
def downstream(session: nox.Session) -> None:
"""
Build a downstream project.
Expand Down Expand Up @@ -304,7 +294,7 @@ def downstream(session: nox.Session) -> None:
session.run("python", "-c", args.code)


@nox.session(venv_backend="none")
@nox.session(venv_backend="none", default=False)
def vendor_pyproject_metadata(session: nox.Session) -> None:
"""
Vendor pyproject.toml metadata.
Expand Down
Loading