Skip to content

Commit 95b35ec

Browse files
committed
ch10: add nox session for type checking with mypy
1 parent c678ee8 commit 95b35ec

File tree

1 file changed

+6
-0
lines changed
  • chapter10-using-types-for-safety-and-inspection

1 file changed

+6
-0
lines changed

chapter10-using-types-for-safety-and-inspection/noxfile.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,12 @@ def lint(session):
5656
session.run("pre-commit", "run", *options, *session.posargs)
5757

5858

59+
@nox.session(python=["3.12", "3.11", "3.10"])
60+
def mypy(session: nox.Session) -> None:
61+
session.install(".[typing]")
62+
session.run("mypy", "src")
63+
64+
5965
def install_coverage_pth(session):
6066
output = session.run(
6167
"python",

0 commit comments

Comments
 (0)