-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnoxfile.py
More file actions
26 lines (17 loc) · 755 Bytes
/
noxfile.py
File metadata and controls
26 lines (17 loc) · 755 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
"""Nox sessions for exercising VectorScan across supported Python versions."""
from __future__ import annotations
import nox
PYTHON_VERSIONS = ("3.9", "3.10", "3.11", "3.12")
@nox.session(python=PYTHON_VERSIONS)
def tests(session: nox.Session) -> None:
"""Run the full pytest suite under each supported interpreter."""
session.install("-r", "requirements-dev.txt")
session.run("pytest")
@nox.session
def lint(session: nox.Session) -> None:
"""Run style and type checks with the active interpreter."""
session.install("-r", "requirements-dev.txt")
session.run("ruff", "check", ".")
session.run("black", "--check", ".")
session.run("isort", "--check-only", "--diff", ".")
session.run("mypy", "tools/vectorscan")