summaryrefslogtreecommitdiff
path: root/sphinx/transforms/post_transforms/code.py
Commit message (Collapse)AuthorAgeFilesLines
* Enable 'nit-picky mode' for Sphinx's documentationAdam Turner2023-04-061-1/+1
| | | | | Fix several reference errors throughout the documentation and set ``nitpick_ignore`` in ``doc/conf.py``.
* Use PEP 595 typesAdam Turner2023-01-011-3/+3
|
* Insert ``from __future__ import annotations``Adam Turner2023-01-011-0/+2
|
* Fix highlighting lexersAdam Turner2022-09-251-2/+2
| | | | - Ensure `pycon3` is always normalised to `pycon`
* 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
|
* Migrate to Node.findall() from Node.traverse()Takeshi KOMIYA2022-01-031-3/+3
| | | | | | | | Node.traverse() was marked as deprecated since docutils-0.18. Instead of it, Node.findall() has been added as successor of traverse(). This applies a patch to docutils-0.17 or older to be available Node.findall() and use it.
* A happy new year!Takeshi KOMIYA2022-01-011-1/+1
|
* Support docutils-0.18: Consume iterator of Element.traverse()Takeshi KOMIYA2021-10-271-1/+1
| | | | | | | Since 0.18, Element.traverse() returns an iterator instead of intermediate object. As a result, the return value is always considered as truthy value. And it becomes fragile when the caller modifies the doctree on the loop.
* refactor: Use PEP-526 based variable annotation (sphinx.transforms)Takeshi KOMIYA2021-03-241-1/+1
|
* Merge branch '3.x'Takeshi KOMIYA2021-01-011-1/+1
|\
| * 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-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Merge branch '3.x'Takeshi KOMIYA2020-08-081-7/+6
|\ \ | |/
| * Close #6698: doctest: Add :no-trim-doctest-flags: optionsTakeshi KOMIYA2020-08-051-7/+6
| | | | | | | | | | | | | | To control trimming doctest flags manually, this adds new options :trim-doctest-flags: and :no-trim-doctest-flags: to doctest directives. It helps to describes doctest module itself in python doc (see #6698).
* | refactor: namedtuples with PEP 526Takeshi KOMIYA2020-07-161-3/+4
|/ | | | | Apply PEP 526 based variable annotation style to namedtuples. It is available since python 3.6.
* A happy new year!Takeshi KOMIYA2020-01-011-1/+1
|
* mypy: Enable disallow_incomplete_defs flag for type checkingTakeshi KOMIYA2019-12-301-2/+2
|
* Migrate to py3 style type annotation: sphinx.transforms.post_transforms.codeTakeshi KOMIYA2019-08-211-34/+17
|
* Fix #6545. Strip doctests for doctest_node blocks.Nathan Goldbaum2019-07-071-8/+16
|
* Add :force: option to code directivesTakeshi KOMIYA2019-06-011-5/+6
|
* Close #1851: Allow to omit an argument for code-block directiveTakeshi KOMIYA2019-02-041-1/+1
|
* 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/+1
| | | | | | | | | | This removes the last use of the six package allowing Sphinx to remove it as a dependency.
* | 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.
* | Use Python 3 super() argument-less syntaxJon Dufresne2018-12-151-1/+1
| | | | | | | | | | | | The form is less verbose and more idiomatic for Python 3 only code. https://docs.python.org/3/library/functions.html#super
* | Replace all "unicode" type by "str"Takeshi KOMIYA2018-12-151-3/+2
| |
* | Add sphinx.util.typing:unicode to help mypy-3 migrationTakeshi KOMIYA2018-11-241-0/+1
| |
* | Adjust type annotations for transforms to docutils'Takeshi KOMIYA2018-11-231-2/+4
| |
* | Use super() to call parent class's methodJon Dufresne2018-11-111-1/+1
|/
* Apply :confval:`trim_doctest_flags` to all builders (cf. text, manpages)Takeshi KOMIYA2018-07-211-0/+44
|
* Refactor: Run highlightlang on resolving phaseTakeshi KOMIYA2018-07-211-0/+106