summaryrefslogtreecommitdiff
path: root/noxfile.py
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2021-03-20 18:09:06 +0100
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2021-03-20 18:09:06 +0100
commit7e8e54e84c63171e748bbf09516fd517e6821ace (patch)
tree996093f75a5d488dddf7ea1f159ed343a561ef89 /noxfile.py
parentb0719d84138b6bbe5f04a4982dfca673aea1a368 (diff)
Inital commit for refactoring to lightning
Diffstat (limited to 'noxfile.py')
-rw-r--r--noxfile.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/noxfile.py b/noxfile.py
index 60c3923..098a551 100644
--- a/noxfile.py
+++ b/noxfile.py
@@ -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)