forked from payscale/fables
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnoxfile.py
32 lines (22 loc) · 838 Bytes
/
noxfile.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import nox
py_versions = ["3.7.4", "3.8.0", "3.8.1"]
@nox.session(python=py_versions, reuse_venv=True)
def blacken(session):
session.install("black")
session.run("black", "fables", "tests", "noxfile.py", "setup.py")
@nox.session(python=py_versions, reuse_venv=True)
def lint(session):
session.install("flake8")
session.run("flake8", "fables")
session.run("flake8", "tests")
@nox.session(python=py_versions, reuse_venv=True)
def type_check(session):
session.install("mypy")
session.run("mypy", "--strict", "fables")
@nox.session(python=py_versions, reuse_venv=True)
@nox.parametrize("pandas", ["0.25.1", "1.0.1"])
def test(session, pandas):
session.install("-r", "requirements.txt")
session.install(f"pandas=={pandas}")
session.install("-e", ".")
session.run("pytest", "--cov=fables")