summaryrefslogtreecommitdiff
path: root/tests/test_quickstart.py
Commit message (Collapse)AuthorAgeFilesLines
* Resolve lint errors from Ruff 0.0.254Adam Turner2023-03-051-1/+1
|
* Unescape quotation marks where possibleAdam Turner2023-02-181-2/+2
|
* Fix COM812Adam Turner2023-02-181-2/+2
|
* Enable Ruff's flake8-bandit checksAdam Turner2022-12-291-4/+4
|
* `.read_text()` -> `.read_text(encoding='utf8')`Adam Turner2022-04-271-4/+4
|
* Collapse single line docstringsAdam Turner2022-02-201-2/+1
|
* Remove copyright and licence fieldsAdam Turner2022-02-201-3/+0
|
* Fix module docstring indentationAdam Turner2022-02-201-2/+2
|
* Fix module docstring first lineAdam Turner2022-02-201-2/+1
|
* Remove module titles in docstringsAdam Turner2022-02-191-3/+0
|
* A happy new year!Takeshi KOMIYA2022-01-011-1/+1
|
* Fix a flake8 violationTakeshi KOMIYA2021-07-071-1/+1
|
* Make test more readableRaymond Sun2021-06-141-3/+6
|
* Fix flake8 errorsRaymond Sun2021-06-141-1/+3
|
* Make quickstart just exit without repromptingRaymond Sun2021-06-121-6/+3
|
* Add testRaymond Sun2021-06-111-1/+15
|
* Close #8326: Rename master_doc to root_docTakeshi KOMIYA2021-02-281-1/+1
| | | | | | To describe the purpose more accurately, the `master_doc` is now renamed to `root_doc`. The old name is still available. But it is recommeneded to use new one from now on.
* refactor: test: Do not use deprecated function: execfile_()Takeshi KOMIYA2021-01-171-5/+4
|
* A happy new year!Takeshi KOMIYA2021-01-011-1/+1
| | | | | | | .. note:: $ find sphinx tests LICENSE doc/conf.py -type f -exec sed -i '' -e 's/2007\-20../2007-2021/' {} \; $ git co sphinx/locale/**/*.js sphinx/templates/epub3/mimetype
* Sort imports with isortFrançois Freitag2020-11-111-2/+1
| | | | | | | | | | | | Keep imports alphabetically sorted and their order homogeneous across Python source files. The isort project has more feature and is more active than the flake8-import-order plugin. Most issues caught were simply import ordering from the same module. Where imports were purposefully placed out of order, tag with isort:skip.
* test: Use read_text() and read_bytes()Takeshi KOMIYA2020-02-011-1/+1
|
* A happy new year!Takeshi KOMIYA2020-01-011-1/+1
|
* quickstart: Simplify generated conf.py (master_doc)Takeshi KOMIYA2019-02-091-1/+0
|
* quickstart: Simplify generated conf.py (source_suffix)Takeshi KOMIYA2019-02-091-1/+0
|
* quickstart: Simplify generated conf.py (for latex)Takeshi KOMIYA2019-01-071-7/+0
|
* Merge branch '1.8'Takeshi KOMIYA2019-01-021-1/+1
|\
| * A happy new year!Takeshi KOMIYA2019-01-021-1/+1
| |
* | Replace use of six.text_type with strJon Dufresne2018-12-181-2/+0
| | | | | | | | | | This removes the last use of the six package allowing Sphinx to remove it as a dependency.
* | Deprecate quickstart.term_decode() and remove internal usesJon Dufresne2018-12-171-11/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Per the Python 3 docs, input() always returns a string: https://docs.python.org/3/library/functions.html#input > The function then reads a line from input, converts it to a > string (stripping a trailing newline), and returns that. The stubs from typeshed say the same: https://github.com/python/typeshed/blob/5c69373890dfaf4f07f0638766fb0a4903352892/stdlib/3/builtins.pyi#L835 Here is the implementation from CPython with also shows a call to PyUnicode_Decode on the result: https://github.com/python/cpython/blob/3.7/Python/bltinmodule.c#L1960-L2143 As the value is always a string, there is nothing to decode. Therefore the call to term_decode() unnecessary and can safely be removed. With this in mind, must adjust quickstart tests to be more representative.
* | Remove unnecessary encoding cookie from Python source filesJon Dufresne2018-12-161-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | In Python 3, the default encoding of source files is utf-8. The encoding cookie is now unnecessary and redundant so remove it. For more details, see the docs: https://docs.python.org/3/howto/unicode.html#the-string-type > The default encoding for Python source code is UTF-8, so you can > simply include a Unicode character in a string literal ... Includes a fix for the flake8 header checks to stop expecting an encoding cookie.
* | refactor: Remove u-prefix from stringsTakeshi KOMIYA2018-12-161-11/+11
| |
* | Avoid respecifying default encoding for .encode()/.decode() callsJon Dufresne2018-12-151-2/+2
| | | | | | | | | | | | | | | | | | | | | | In Python 3, both .encode() and .decode() default the encoding to 'utf-8'. See the docs: https://docs.python.org/3/library/stdtypes.html#str.encode https://docs.python.org/3/library/stdtypes.html#bytes.decode Simplify and shorten the code by using the default instead of respecifying it.
* | refactor: Replace six.StringIO by io.StringIOTakeshi KOMIYA2018-12-151-1/+2
| |
* | quickstart: Simplify generated conf.py (for manpage)Takeshi KOMIYA2018-12-021-4/+0
| |
* | Merge pull request #5607 from tk0miya/smart_texinfo_conf_pyTakeshi KOMIYA2018-12-021-5/+0
|\ \ | | | | | | quickstart: Simplify generated conf.py (for texinfo)
| * | quickstart: Simplify generated conf.py (for texinfo)Takeshi KOMIYA2018-11-111-5/+0
| | |
* | | Merge branch '1.8'Takeshi KOMIYA2018-11-221-1/+1
|\ \ \ | |/ / |/| / | |/
| * Fix "invalid escape sequence" warnings emitted during testsJon Dufresne2018-11-131-1/+1
| | | | | | | | | | | | | | sphinx/tests/test_quickstart.py:221: DeprecationWarning: invalid escape sequence '\*' content = filename.bytes().decode('unicode-escape') sphinx/tests/test_quickstart.py:221: DeprecationWarning: invalid escape sequence '\`' content = filename.bytes().decode('unicode-escape')
* | Remove uses of six.moves that did not cause any type errorsJon Dufresne2018-09-231-1/+0
| | | | | | | | | | Removal of the remaining imports may require passing "--python-version 3.5" to the mypy command.
* | refactoring: Drop PY2 and PY3 flagsTakeshi KOMIYA2018-09-221-7/+2
|/
* conf.py: Drop epub_author, epub_publisher and epub_copyrightTakeshi KOMIYA2018-08-051-1/+0
| | | | | The default values of them are same as conf.py's. So it is not needed to override the setting.
* Fix flake8 violationsTakeshi KOMIYA2018-02-191-1/+1
|
* Merge branch 'happy_new_year' into masterTakeshi KOMIYA2018-01-011-1/+1
|\
| * A happy new year!Takeshi KOMIYA2018-01-011-1/+1
| |
| * refs #3458: add sphinx.testing that are moved from /tests directory.shimizukawa2017-05-141-1/+1
| |
* | Fix flake8 violationsTakeshi KOMIYA2017-12-231-1/+0
| |
* | quickstart: Rework how we collect extensionsStephen Finucane2017-12-031-1/+0
| | | | | | | | | | | | | | | | | | | | This is a little more flexible than the existing set up and makes maximum use of argparse capabilities. This has the side-effect of no longer including configuration for the 'sphinx.ext.todo' extension when said extension is not enabled. Signed-off-by: Stephen Finucane <stephen@that.guru>
* | quickstart: Rework 'do_prompt' functionStephen Finucane2017-12-031-39/+24
| | | | | | | | | | | | | | The 'd' and 'key' values are used on a single line. Move these outside the function to allow us to do other things with this function. Signed-off-by: Stephen Finucane <stephen@that.guru>
* | sphinx-quickstart: Move code to 'sphinx.cmd'Stephen Finucane2017-10-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We're going to move the executable's here (or at least those that part of the core library). The 'sphinx-build' executable was already moved, so lets do 'sphinx-quickstart' next. To avoid breaking packages that are using this feature directly, aliases for the old 'main' method are included. This is based on what Django does [1] and, like Django, will allow us to safely remove the old modules in Sphinx 2.0. [1] https://github.com/django/django/blob/1.11/django/test/runner.py#L688-L695 Signed-off-by: Stephen Finucane <stephen@that.guru>
* | Merge pull request #3668 from adamjstewart/fixes/apidoc-main-argvTakeshi KOMIYA2017-05-141-2/+1
|\ \ | | | | | | Don't ignore first argument passed to sphinx.apidoc.main