-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnoxfile.py
More file actions
28 lines (20 loc) · 708 Bytes
/
noxfile.py
File metadata and controls
28 lines (20 loc) · 708 Bytes
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
import nox
@nox.session
def tests(session: nox.Session):
session.install("-r", "requirements/tests.txt")
session.run("maturin", "develop")
session.run("pytest")
@nox.session
def check(session: nox.Session):
session.install("-r", "requirements/check.txt")
session.run("ruff", "check", "python/vts")
session.run("mypy", "python/vts")
@nox.session
def format(session: nox.Session):
session.install("-r", "requirements/format.txt")
session.run("ruff", "check", "--select", "I", "python/vts")
session.run("ruff", "format", "--check", "python/vts")
@nox.session
def build(session):
session.install("-r", "requirements/build.txt")
session.run("maturin", "build")