Skip to content

Commit

Permalink
chore: simpler nox file by a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
henryiii authored Oct 3, 2024
1 parent ef07739 commit a660dee
Showing 1 changed file with 5 additions and 15 deletions.
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

0 comments on commit a660dee

Please sign in to comment.