-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnoxfile.py
More file actions
20 lines (16 loc) · 653 Bytes
/
noxfile.py
File metadata and controls
20 lines (16 loc) · 653 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import nox
nox.options.sessions = ["lint", "tests"]
@nox.session(python=["3.11", "3.12", "3.13", "3.14"], venv_backend="uv")
def tests(session):
session.install(".[dev]")
session.run("pytest", *session.posargs)
@nox.session(python="3.11", venv_backend="uv")
def lint(session):
session.install(".[dev]")
session.run("ruff", "check", "src", "tests")
session.run("ruff", "format", "--check", "src", "tests")
session.run("ty", "check", "src")
@nox.session(python="3.11", venv_backend="uv")
def coverage(session):
session.install(".[dev]")
session.run("pytest", "--cov=src/create_pywire_app", "--cov-report=term-missing")