-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathnoxfile.py
More file actions
33 lines (23 loc) · 831 Bytes
/
noxfile.py
File metadata and controls
33 lines (23 loc) · 831 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
32
33
import nox
nox.options.default_venv_backend = "uv|virtualenv"
@nox.session
def docs(session):
"""Build the documentation as static HTML using MyST."""
session.install("mystmd")
session.run("myst", "build", "--html")
@nox.session(name="docs-live")
def docs_live(session):
"""Start a live development server for the documentation."""
session.install("mystmd")
session.run("myst", "start")
@nox.session(name="clean")
def clean(session):
"""Clean the documentation build artifacts."""
session.install("mystmd")
session.run("myst", "clean", "--all")
@nox.session
def release(session):
"""Create GitHub releases for plugins.
See src/release.py for details. This just passes args and kwargs to that script.
"""
session.run("python", "-m", "src.release", *session.posargs)