jyhl
5 years ago
5 changed files with 24 additions and 1 deletions
@ -0,0 +1,17 @@
|
||||
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") |
Loading…
Reference in new issue