Skip to content

Commit

Permalink
Adds back in the mypy sessions.
Browse files Browse the repository at this point in the history
They will still fail. Need to open an issue to work these... Significant effort, since it's been ignored for so long.
  • Loading branch information
Czarified committed Jul 4, 2024
1 parent 371ab47 commit 9e6b65d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"pre-commit",
"safety",
"tests",
"mypy",
"typeguard",
"xdoctest",
"docs-build",
Expand Down Expand Up @@ -156,6 +157,17 @@ def tests(session: Session) -> None:
session.notify("coverage", posargs=[])


@session(python=python_versions)
def mypy(session: Session) -> None:
"""Type-check using mypy."""
args = session.posargs or ["src", "tests", "docs/conf.py"]
session.install(".")
session.install("mypy", "pytest")
session.run("mypy", *args)
if not session.posargs:
session.run("mypy", f"--python-executable={sys.executable}", "noxfile.py")


@session(python=python_versions[0])
def coverage(session: Session) -> None:
"""Produce the coverage report."""
Expand Down

0 comments on commit 9e6b65d

Please sign in to comment.