You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
335 B
18 lines
335 B
4 years ago
|
import nox
|
||
|
|
||
|
|
||
|
|
||
|
@nox.session
|
||
|
def lint(session):
|
||
|
session.install("flake8")
|
||
|
session.run("flake8", "demo.py")
|
||
|
|
||
|
|
||
|
|
||
|
@nox.session(python=["2.7", "3.6"])
|
||
|
def tests(session):
|
||
|
# same as pip install -r -requirements.txt
|
||
|
session.install("-r", "requirements.txt")
|
||
|
session.install("pytest")
|
||
|
session.run("pytest","-v","tests")
|