-
Notifications
You must be signed in to change notification settings - Fork 11
/
noxfile.py
27 lines (23 loc) · 703 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
import nox
@nox.session
def lint(session):
lint_tools = ["black", "isort", "flake8"]
targets = ["pytd", "setup.py", "noxfile.py"]
session.install(*lint_tools)
session.run("flake8", *targets)
session.run("black", "--diff", "--check", *targets)
session.run("isort", "--diff", "--check", *targets)
@nox.session
@nox.parametrize(
"python,pandas",
[
(python, pandas)
for python in ("3.8", "3.9", "3.10", "3.11")
for pandas in ("1.5.3", "2.2.2")
if (python, pandas) != ("3.8", "2.2.2")
],
)
def tests(session, python, pandas):
session.install(".[test,spark]")
session.install(f"pandas=={pandas}")
session.run("pytest", "-v")