Skip to content

Commit

Permalink
deps updated
Browse files Browse the repository at this point in the history
  • Loading branch information
joelb123 committed Jan 9, 2024
1 parent c2bbd08 commit 62e8279
Show file tree
Hide file tree
Showing 2 changed files with 237 additions and 247 deletions.
19 changes: 4 additions & 15 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,7 @@ def mypy(session: nox.Session) -> None:
"""Type-check using mypy."""
args = session.posargs or ["src"]
session.run_always("pdm", "install", "-G", "tests", "-G", "mypy", external=True)
session.run("mypy", *args)
if not session.posargs:
session.run(
"mypy",
f"--python-executable={sys.executable}",
"--check-untyped-defs",
"noxfile.py",
)
session.run("mypy", "--check-untyped-defs", *args)


@nox.session(python=python_versions)
Expand All @@ -67,14 +60,11 @@ def tests(session: nox.Session) -> None:
session.run_always("pdm", "install", "-G", "tests", "-G", "coverage", external=True)
try:
session.run(
"pdm",
"run",
"coverage",
"run",
"-m",
"pytest",
*session.posargs,
external=True,
)
cov_path = Path(".coverage")
if cov_path.exists():
Expand All @@ -91,10 +81,9 @@ def coverage(session: nox.Session) -> None:
session.run_always("pdm", "install", "-G", "coverage", external=True)

if not session.posargs and any(Path().glob(".coverage.*")):
session.run("pdm", "run", "coverage", "combine", external=True)
session.run("pwd")
session.run("ls")
session.run("pdm", "run", "coverage", *args, external=True)
session.run("coverage", "combine")
session.run("pwd", external=True)
session.run("coverage", *args)


@nox.session(python=python_versions)
Expand Down
Loading

0 comments on commit 62e8279

Please sign in to comment.