You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
876 B

#!/usr/bin/env python
import nox
def lint(session):
session.install("black")"black", "mapytex", "", "")
def test(session):
session.install("-r", "requirements.txt")
session.install("pytest")"pytest", "mapytex")
def docs(session):
"""Build the documentation.""""rm", "-rf", "documentation/_build", external=True)
session.install("sphinx", "sphinx-autobuild", "sphinx_rtd_theme")
sphinx_args = ["-b", "html", "-W", "-d", "_build/doctrees", ".", "_build/html"]
if not session.interactive:
sphinx_cmd = "sphinx-build"
sphinx_cmd = "sphinx-autobuild"
sphinx_args.insert(0, "--open-browser"), *sphinx_args)