File size: 450 Bytes
d643072 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
import nox
LOCATIONS = ("src/", "tests/", "noxfile.py", "setup.py")
@nox.session
def lint(session):
session.install("flake8")
session.install("flake8-bugbear")
session.install("flake8-isort")
args = session.posargs or LOCATIONS
session.run("flake8", *args)
@nox.session
def tests(session):
session.install(".")
session.install("pytest")
session.install("pytest-mock")
session.run("pytest", *session.posargs)
|