-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnoxfile.py
More file actions
31 lines (21 loc) · 718 Bytes
/
Copy pathnoxfile.py
File metadata and controls
31 lines (21 loc) · 718 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
29
30
31
import nox
@nox.session(python=["3.10", "3.11", "3.12"])
def tests(session):
session.install("-e", ".[tests,tests-integration]")
session.run("pytest", "tests/unit", "tests/functional")
@nox.session
def integration(session):
session.install("-e", ".[tests-integration]")
session.run("pytest", "tests/integration")
@nox.session
def lint(session):
session.install("ruff")
session.run("ruff", "check", "src")
@nox.session
def docs(session):
session.install("-e", ".[docs]")
session.run("sphinx-build", "-b", "html", "docs", "docs/_build/html")
@nox.session
def changelog(session):
session.install("towncrier>=24.8", "-e", ".")
session.run("towncrier", "build", "--draft")