summaryrefslogtreecommitdiff
path: root/noxfile.py
diff options
context:
space:
mode:
authoraktersnurra <gustaf.rydholm@gmail.com>2021-02-24 22:00:29 +0100
committeraktersnurra <gustaf.rydholm@gmail.com>2021-02-24 22:00:29 +0100
commit905eeeb4c3c0ba54b5414eb8f435e2e9870b7307 (patch)
tree91dab598a94911e6147b996237e786dd47f11f2f /noxfile.py
parent4a54d7e690897dd6e6c719fb908fd371a44c2952 (diff)
updates
Diffstat (limited to 'noxfile.py')
-rw-r--r--noxfile.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/noxfile.py b/noxfile.py
index d1a8d1b..60c3923 100644
--- a/noxfile.py
+++ b/noxfile.py
@@ -33,6 +33,7 @@ def install_with_constraints(session: Session, *args: str, **kwargs: Any) -> Non
"export",
"--dev",
"--format=requirements.txt",
+ "--without-hashes",
f"--output={requirements.name}",
external=True,
)
@@ -47,7 +48,7 @@ def black(session: Session) -> None:
session.run("black", *args)
-@nox.session(python=["3.8", "3.7"])
+@nox.session(python=["3.8"])
def lint(session: Session) -> None:
"""Lint using flake8."""
args = session.posargs or locations
@@ -82,7 +83,7 @@ def safety(session: Session) -> None:
session.run("safety", "check", f"--file={requirements.name}", "--full-report")
-@nox.session(python=["3.8", "3.7"])
+@nox.session(python=["3.8"])
def mypy(session: Session) -> None:
"""Type-check using mypy."""
args = session.posargs or locations
@@ -90,7 +91,7 @@ def mypy(session: Session) -> None:
session.run("mypy", *args)
-@nox.session(python="3.7")
+@nox.session(python="3.8")
def pytype(session: Session) -> None:
"""Type-check using pytype."""
args = session.posargs or ["--disable=import-error", *locations]
@@ -98,7 +99,7 @@ def pytype(session: Session) -> None:
session.run("pytype", *args)
-@nox.session(python=["3.8", "3.7"])
+@nox.session(python=["3.8"])
def tests(session: Session) -> None:
"""Run the test suite."""
args = session.posargs or ["--cov", "-m", "not e2e"]
@@ -109,7 +110,7 @@ def tests(session: Session) -> None:
session.run("pytest", *args)
-@nox.session(python=["3.8", "3.7"])
+@nox.session(python=["3.8"])
def typeguard(session: Session) -> None:
"""Runtime type checking using Typeguard."""
args = session.posargs or ["-m", "not e2e"]
@@ -118,7 +119,7 @@ def typeguard(session: Session) -> None:
session.run("pytest", f"--typeguard-packages={package}", *args)
-@nox.session(python=["3.8", "3.7"])
+@nox.session(python=["3.8"])
def xdoctest(session: Session) -> None:
"""Run examples with xdoctest."""
args = session.posargs or ["all"]