Skip to content

Commit

Permalink
ENH: Avoid using the same name for a func and var. [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
Taher Chegini committed Nov 26, 2023
1 parent b346ac1 commit dea729e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,16 +98,16 @@ def type_check(session: nox.Session) -> None:
def tests(session: nox.Session) -> None:
"""Run the test suite."""
extras = get_extras()
speedup_dep = True
try:
extras.remove("speedup")
speedup = True
except ValueError:
speedup = False
speedup_dep = False

install_deps(session, ",".join(["test", *extras]))
session.run("pytest", "--doctest-modules", *session.posargs)
session.notify("cover")
if speedup:
if speedup_dep:
session.notify("speedup")


Expand Down

0 comments on commit dea729e

Please sign in to comment.