Skip to content

Commit 3b088c0

Browse files
committed
simplify
1 parent 4b9d34e commit 3b088c0

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

tooling/src/hypothesistooling/projects/hypothesispython.py

+10-12
Original file line numberDiff line numberDiff line change
@@ -65,21 +65,19 @@ def has_source_changes():
6565
return tools.has_changes([PYTHON_SRC])
6666

6767

68-
def build_docs(*, builder="html", only=[]):
68+
def build_docs(*, builder="html", only=()):
6969
# See https://www.sphinx-doc.org/en/stable/man/sphinx-build.html
7070
# (unfortunately most options only have the short flag version)
7171
tools.scripts.pip_tool(
72-
*[
73-
"sphinx-build",
74-
"-W",
75-
"-T",
76-
"-E",
77-
"-b",
78-
builder,
79-
"docs",
80-
"docs/_build/" + builder,
81-
*only,
82-
],
72+
"sphinx-build",
73+
"-W",
74+
"-T",
75+
"-E",
76+
"-b",
77+
builder,
78+
"docs",
79+
"docs/_build/" + builder,
80+
*only,
8381
cwd=HYPOTHESIS_PYTHON,
8482
)
8583

0 commit comments

Comments
 (0)