summaryrefslogtreecommitdiff
path: root/sphinx/cmd/quickstart.py
diff options
context:
space:
mode:
authorDaniel Eades <danieleades@hotmail.com>2022-12-15 17:22:07 +0000
committerJean-François B <2589111+jfbu@users.noreply.github.com>2022-12-16 16:50:24 +0100
commit1abb24e309c8189eca2663f77c3a3aa866633e12 (patch)
treee74425a4c2647b8a5c6c7c980f00235fc12491b5 /sphinx/cmd/quickstart.py
parentdc29bf9abef764460ec5ec1c1571bddce9a4f7fa (diff)
downloadsphinx-git-1abb24e309c8189eca2663f77c3a3aa866633e12.tar.gz
remove blanket 'noqas'
Diffstat (limited to 'sphinx/cmd/quickstart.py')
-rw-r--r--sphinx/cmd/quickstart.py20
1 files changed, 11 insertions, 9 deletions
diff --git a/sphinx/cmd/quickstart.py b/sphinx/cmd/quickstart.py
index 670a8ee02..5139fe227 100644
--- a/sphinx/cmd/quickstart.py
+++ b/sphinx/cmd/quickstart.py
@@ -239,9 +239,9 @@ def ask_user(d: Dict[str, Any]) -> None:
if 'dot' not in d:
print()
- print(__('Inside the root directory, two more directories will be created; "_templates"\n' # NOQA
- 'for custom HTML templates and "_static" for custom stylesheets and other static\n' # NOQA
- 'files. You can enter another prefix (such as ".") to replace the underscore.')) # NOQA
+ print(__('Inside the root directory, two more directories will be created; "_templates"\n' # noqa: E501
+ 'for custom HTML templates and "_static" for custom stylesheets and other static\n' # noqa: E501
+ 'files. You can enter another prefix (such as ".") to replace the underscore.')) # noqa: E501
d['dot'] = do_prompt(__('Name prefix for templates and static dir'), '_', ok)
if 'project' not in d:
@@ -264,12 +264,14 @@ def ask_user(d: Dict[str, Any]) -> None:
if 'language' not in d:
print()
- print(__('If the documents are to be written in a language other than English,\n'
- 'you can select a language here by its language code. Sphinx will then\n'
- '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.')) # NOQA
+ print(__(
+ 'If the documents are to be written in a language other than English,\n'
+ 'you can select a language here by its language code. Sphinx will then\n'
+ '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.'
+ ))
d['language'] = do_prompt(__('Project language'), 'en')
if d['language'] == 'en':
d['language'] = None