Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
tybug committed Oct 29, 2024
1 parent 4b9d34e commit 3b088c0
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions tooling/src/hypothesistooling/projects/hypothesispython.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,21 +65,19 @@ def has_source_changes():
return tools.has_changes([PYTHON_SRC])


def build_docs(*, builder="html", only=[]):
def build_docs(*, builder="html", only=()):
# See https://www.sphinx-doc.org/en/stable/man/sphinx-build.html
# (unfortunately most options only have the short flag version)
tools.scripts.pip_tool(
*[
"sphinx-build",
"-W",
"-T",
"-E",
"-b",
builder,
"docs",
"docs/_build/" + builder,
*only,
],
"sphinx-build",
"-W",
"-T",
"-E",
"-b",
builder,
"docs",
"docs/_build/" + builder,
*only,
cwd=HYPOTHESIS_PYTHON,
)

Expand Down

0 comments on commit 3b088c0

Please sign in to comment.