Skip to content

Commit

Permalink
Merge pull request #161 from bee-san/106-add-black-isort-tests
Browse files Browse the repository at this point in the history
Add black and isort tests
  • Loading branch information
bee-san authored Oct 3, 2021
2 parents cb92f02 + 7c334d2 commit 6dcf986
Show file tree
Hide file tree
Showing 3 changed files with 149 additions and 90 deletions.
6 changes: 4 additions & 2 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def lint(session: Session) -> None:
def tests(session: Session) -> None:
"""Run the test suite."""
session.run("poetry", "install", "--no-dev", external=True)
install_with_constraints(session, "pytest")
install_with_constraints(session, "pytest", "pytest-black", "pytest-isort")
session.run("pytest")


Expand All @@ -60,7 +60,9 @@ def typeguard(session: Session) -> None:
"""Runtime type checking using Typeguard."""
args = session.posargs or ["-m", "not e2e"]
session.run("poetry", "install", "--no-dev", external=True)
install_with_constraints(session, "pytest", "pytest-mock", "typeguard")
install_with_constraints(
session, "pytest", "pytest-mock", "typeguard", "pytest-black", "pytest-isort"
)
session.run("pytest", f"--typeguard-packages={package}", *args)


Expand Down
Loading

0 comments on commit 6dcf986

Please sign in to comment.