refactor(pyargus): define a runtime checkable Signal protocol

This commit is contained in:
Anand Balakrishnan 2023-09-07 16:34:13 -07:00
parent 8027f86213
commit 3d6157e03a
No known key found for this signature in database
6 changed files with 70 additions and 17 deletions

View file

@ -89,10 +89,16 @@ def ruff(session: nox.Session):
def mypy(session: nox.Session):
session.conda_install("mypy", "typing-extensions", "pytest", "hypothesis", "numpy")
session.env.update(ENV)
with session.chdir(CURRENT_DIR / "pyargus"):
session.install("-e", ".")
session.run("mypy", ".")
session.run("stubtest", "argus")
session.run(
"stubtest",
"argus",
"--allowlist",
str(CURRENT_DIR / "pyargus/stubtest_allow.txt"),
)
@nox.session