summaryrefslogtreecommitdiff
path: root/sphinx/cmd/quickstart.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/cmd/quickstart.py')
-rw-r--r--sphinx/cmd/quickstart.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/sphinx/cmd/quickstart.py b/sphinx/cmd/quickstart.py
index 0282eb827..626eb0b78 100644
--- a/sphinx/cmd/quickstart.py
+++ b/sphinx/cmd/quickstart.py
@@ -133,7 +133,7 @@ def ok(x: str) -> str:
def do_prompt(
- text: str, default: str | None = None, validator: Callable[[str], Any] = nonempty
+ text: str, default: str | None = None, validator: Callable[[str], Any] = nonempty,
) -> str | bool:
while True:
if default is not None:
@@ -269,7 +269,7 @@ def ask_user(d: dict[str, Any]) -> None:
'translate text that it generates into that language.\n'
'\n'
'For a list of supported codes, see\n'
- 'https://www.sphinx-doc.org/en/master/usage/configuration.html#confval-language.'
+ 'https://www.sphinx-doc.org/en/master/usage/configuration.html#confval-language.',
))
d['language'] = do_prompt(__('Project language'), 'en')
if d['language'] == 'en':
@@ -325,7 +325,7 @@ def ask_user(d: dict[str, Any]) -> None:
def generate(
- d: dict, overwrite: bool = True, silent: bool = False, templatedir: str | None = None
+ d: dict, overwrite: bool = True, silent: bool = False, templatedir: str | None = None,
) -> None:
"""Generate project based on values in *d*."""
template = QuickstartRenderer(templatedir or '')
@@ -462,7 +462,7 @@ def get_parser() -> argparse.ArgumentParser:
"\n"
"sphinx-quickstart is an interactive tool that asks some questions about your\n"
"project and then generates a complete documentation directory and sample\n"
- "Makefile to be used with sphinx-build.\n"
+ "Makefile to be used with sphinx-build.\n",
)
parser = argparse.ArgumentParser(
usage='%(prog)s [OPTIONS] <PROJECT_DIR>',