Skip to content

Commit

Permalink
Stop passing reuse_venv on nox sessions
Browse files Browse the repository at this point in the history
There is a shorthand (`-r` or `-R`) that can be used for this.
  • Loading branch information
pradyunsg committed Jan 30, 2024
1 parent bd2af94 commit 5859a3f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions noxfile.py
Expand Up @@ -65,7 +65,7 @@ def get_release_versions(version_file):
#
# Development Sessions
#
@nox.session(reuse_venv=True)
@nox.session
def docs(session):
session.install("-r", "docs/requirements.txt")
session.install(".")
Expand All @@ -74,7 +74,7 @@ def docs(session):
session.run("sphinx-build", "-b", "dirhtml", "-v", "docs/", "build/docs")


@nox.session(name="docs-live", reuse_venv=True)
@nox.session(name="docs-live")
def docs_live(session):
session.install("-r", "docs/requirements.txt")
session.install("-e", ".", "sphinx-theme-builder[cli]")
Expand All @@ -83,13 +83,13 @@ def docs_live(session):
session.run("stb", "serve", "docs/", *session.posargs)


@nox.session(reuse_venv=True)
@nox.session
def lint(session):
session.notify("lint-pre-commit")
session.notify("lint-mypy")


@nox.session(reuse_venv=True, name="lint-pre-commit")
@nox.session(name="lint-pre-commit")
def lint_pre_commit(session):
session.install("pre-commit")

Expand All @@ -101,7 +101,7 @@ def lint_pre_commit(session):
session.run("pre-commit", "run", *args)


@nox.session(reuse_venv=True, name="lint-mypy")
@nox.session(name="lint-mypy")
def lint_mypy(session):
session.install(
"-e", ".", "mypy", "types-docutils", "types-Pygments", "types-beautifulsoup4"
Expand Down

0 comments on commit 5859a3f

Please sign in to comment.