diff options
Diffstat (limited to 'noxfile.py')
-rw-r--r-- | noxfile.py | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -40,7 +40,7 @@ def install_with_constraints(session: Session, *args: str, **kwargs: Any) -> Non session.install(f"--constraint={requirements.name}", *args, **kwargs) -@nox.session(python="3.8") +@nox.session(python="3.9") def black(session: Session) -> None: """Run black code formatter.""" args = session.posargs or locations @@ -48,7 +48,7 @@ def black(session: Session) -> None: session.run("black", *args) -@nox.session(python=["3.8"]) +@nox.session(python=["3.9"]) def lint(session: Session) -> None: """Lint using flake8.""" args = session.posargs or locations @@ -66,7 +66,7 @@ def lint(session: Session) -> None: session.run("flake8", *args) -@nox.session(python="3.8") +@nox.session(python="3.9") def safety(session: Session) -> None: """Scan dependencies for insecure packages.""" with tempfile.NamedTemporaryFile() as requirements: @@ -83,7 +83,7 @@ def safety(session: Session) -> None: session.run("safety", "check", f"--file={requirements.name}", "--full-report") -@nox.session(python=["3.8"]) +@nox.session(python=["3.9"]) def mypy(session: Session) -> None: """Type-check using mypy.""" args = session.posargs or locations @@ -91,7 +91,7 @@ def mypy(session: Session) -> None: session.run("mypy", *args) -@nox.session(python="3.8") +@nox.session(python="3.9") def pytype(session: Session) -> None: """Type-check using pytype.""" args = session.posargs or ["--disable=import-error", *locations] @@ -99,7 +99,7 @@ def pytype(session: Session) -> None: session.run("pytype", *args) -@nox.session(python=["3.8"]) +@nox.session(python=["3.9"]) def tests(session: Session) -> None: """Run the test suite.""" args = session.posargs or ["--cov", "-m", "not e2e"] @@ -110,7 +110,7 @@ def tests(session: Session) -> None: session.run("pytest", *args) -@nox.session(python=["3.8"]) +@nox.session(python=["3.9"]) def typeguard(session: Session) -> None: """Runtime type checking using Typeguard.""" args = session.posargs or ["-m", "not e2e"] @@ -119,7 +119,7 @@ def typeguard(session: Session) -> None: session.run("pytest", f"--typeguard-packages={package}", *args) -@nox.session(python=["3.8"]) +@nox.session(python=["3.9"]) def xdoctest(session: Session) -> None: """Run examples with xdoctest.""" args = session.posargs or ["all"] @@ -128,7 +128,7 @@ def xdoctest(session: Session) -> None: session.run("python", "-m", "xdoctest", package, *args) -@nox.session(python="3.8") +@nox.session(python="3.9") def coverage(session: Session) -> None: """Upload coverage data.""" install_with_constraints(session, "coverage[toml]", "codecov") @@ -136,7 +136,7 @@ def coverage(session: Session) -> None: session.run("codecov", *session.posargs) -@nox.session(python="3.8") +@nox.session(python="3.9") def docs(session: Session) -> None: """Build the documentation.""" session.run("poetry", "install", "--no-dev", external=True) |