summaryrefslogtreecommitdiff
path: root/sphinx/util/rst.py
Commit message (Collapse)AuthorAgeFilesLines
* Run pyupgrade (#11070)Adam Turner2023-01-021-1/+1
|
* Use PEP 595 typesAdam Turner2023-01-011-2/+2
|
* Insert ``from __future__ import annotations``Adam Turner2023-01-011-0/+2
|
* Enable Ruff's pylint 'PLC2201' checkAdam Turner2022-12-301-1/+1
| | | | Address all cases where the comparison order check is violated
* Update typing ignores for mypy 0.990Adam Turner2022-11-131-1/+1
|
* 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 type annotations (for jinja2)Takeshi KOMIYA2021-05-191-2/+2
| | | | | | Jinja2 starts to bundle its typehints since v3.0. As a result, mypy warns "ignore" hint is needless. This removes them all to keep it valid.
* Support jinja2-3.0Takeshi KOMIYA2021-05-191-2/+8
| | | | | | Since jinja2-3.0, some utility functions like contextfunction and environmentfilter are renamed to new name. This follows the updates to support jinja2-3.0 or above.
* refactor: Use PEP-526 based variable annotation (sphinx.util)Takeshi KOMIYA2021-03-101-2/+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-4/+2
| | | | | | | | | | | | 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.
* Fix #7894: gettext: Wrong source info is shown when using rst_epilogTakeshi KOMIYA2020-07-081-1/+6
|
* A happy new year!Takeshi KOMIYA2020-01-011-1/+1
|
* Migrate to py3 style type annotation: sphinx.util.rstTakeshi KOMIYA2019-06-051-20/+10
|
* Add rst.heading()Takeshi KOMIYA2019-05-021-1/+34
|
* Merge branch '1.8'Takeshi KOMIYA2019-01-021-1/+1
|\
| * A happy new year!Takeshi KOMIYA2019-01-021-1/+1
| |
* | Merge pull request #5509 from stephenfin/remove-future-importsTakeshi KOMIYA2018-12-171-1/+0
|\ \ | | | | | | Remove future imports
| * | py3: Remove (most) __future__ importsStephen Finucane2018-12-171-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There were two used: - print_function - absolute_import Both of these are mandatory in Python 3.0 onwards [1] and can therefore be removed...mostly. Unfortunately, mypy is still running in Python 2.7 mode, meaning we need the 'print_function' future wherever we're calling 'print' with the 'file' argument. There's also a single 'absolute_import' future that must be retained as its removal breaks a test for as-yet unknown reasons. TODOs are added to resolve both issues in the future. [1] https://docs.python.org/3/library/__future__.html Signed-off-by: Stephen Finucane <stephen@that.guru>
* | | 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.
* | Replace all "unicode" type by "str"Takeshi KOMIYA2018-12-151-5/+4
| |
* | Add prepend_prolog() and append_epilog()Takeshi KOMIYA2018-12-051-1/+36
| |
* | Add role manipulator functions to sphinx.util.docutilsTakeshi KOMIYA2018-12-011-2/+3
| |
* | Add sphinx.util.typing:unicode to help mypy-3 migrationTakeshi KOMIYA2018-11-241-0/+1
|/
* Fix mypy violationsTakeshi KOMIYA2018-10-161-1/+1
|
* Merge branch '1.7'Takeshi KOMIYA2018-03-181-3/+3
|\
| * Merge pull request #4730 from guoci/regex_no_warningTakeshi KOMIYA2018-03-141-1/+1
| |\ | | | | | | prevent raising of FutureWarning in regex
| | * prevent raising of FutureWarning in regex.guoci2018-03-131-1/+1
| | |
| * | Revert "Use typing.TYPE_CHECKING for typehints"Takeshi KOMIYA2018-03-131-2/+2
| |/ | | | | | | This reverts commit a073e17537c2aacaac305feadea58d4473ec97f4.
* | Make console and warning messages translatableTakeshi KOMIYA2018-03-031-1/+2
|/
* Use typing.TYPE_CHECKING for typehintsTakeshi KOMIYA2018-02-141-2/+2
|
* Fix #3952: apidoc: module header is too escapedTakeshi KOMIYA2018-01-281-2/+4
|
* Merge branch 'happy_new_year' into masterTakeshi KOMIYA2018-01-011-1/+1
|\
| * A happy new year!Takeshi KOMIYA2018-01-011-1/+1
| |
* | Fix mypy violationsTakeshi KOMIYA2017-11-111-1/+5
| |
* | Add default_role contextmanager to enable default-role temporarilyTakeshi KOMIYA2017-10-311-0/+25
|/
* Merge branch 'stable'Takeshi KOMIYA2017-03-261-1/+1
|\
| * Year++Takeshi KOMIYA2017-03-261-1/+1
| |
* | Reduce DeprecationWarnings for regexpTakeshi KOMIYA2017-02-171-1/+1
| |
* | Fix mypy violationsTakeshi KOMIYA2017-02-081-1/+2
|/
* Fix #1462: autosummary warns for namedtuple with attribute with trailing ↵Takeshi KOMIYA2016-08-301-0/+18
underscore