summaryrefslogtreecommitdiff
path: root/sphinx/jinja2glue.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix COM812Adam Turner2023-02-181-1/+1
|
* Add SIM113 lint (#11057)danieleades2023-01-051-1/+1
| | | SIM113: Use ``enumerate``
* Run pyupgrade (#11070)Adam Turner2023-01-021-2/+2
|
* Use PEP 604 typesAdam Turner2023-01-011-4/+4
|
* Use PEP 595 typesAdam Turner2023-01-011-8/+8
|
* Insert ``from __future__ import annotations``Adam Turner2023-01-011-0/+2
|
* set up mypy for incremental adoption of 'strict optional'daniel.eades2022-07-261-2/+7
|
* replace path.join with pathlib.Pathdhmemi2022-04-281-5/+2
| | | | #
* support srearch template with extended-length pathdhmemi2022-04-221-0/+4
| | | | | | | | some template file contains forward slash in the path, which is not supported by the extended path on windows. see also: - https://github.com/bazelbuild/rules_python/issues/680 - https://stackoverflow.com/questions/21194530/what-does-mean-when-prepended-to-a-file-path
* 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-1/+1
| | | | | | 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-4/+9
| | | | | | 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.
* 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
* | Do isortTakeshi KOMIYA2020-11-121-2/+1
| |
* | Merge branch '3.x'Takeshi KOMIYA2020-11-121-1/+1
|\ \ | |/
| * Sort imports with isortFrançois Freitag2020-11-111-1/+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.
* | Merge branch '3.x'Takeshi KOMIYA2020-06-041-1/+1
|\ \ | |/
| * Fix mypy violations (with mypy-0.780)Takeshi KOMIYA2020-06-031-1/+1
| |
* | Hello TYPE_CHECKING!Takeshi KOMIYA2020-03-071-2/+2
|/
* A happy new year!Takeshi KOMIYA2020-01-011-1/+1
|
* mypy: Enable disallow_incomplete_defs flag for type checkingTakeshi KOMIYA2019-12-301-1/+1
|
* Migrate to py3 style type annotation: sphinx.jinja2glueTakeshi KOMIYA2019-12-251-39/+21
|
* Replace `a and b or c` by the more legible `b if a or c`.Antony Lee2019-12-211-1/+1
|
* Clean up import for annotationsTakeshi KOMIYA2019-03-061-1/+1
|
* Merge branch '1.8'Takeshi KOMIYA2019-01-021-1/+1
|\
| * A happy new year!Takeshi KOMIYA2019-01-021-1/+1
| |
* | 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-11/+10
| |
* | Add sphinx.util.typing:unicode to help mypy-3 migrationTakeshi KOMIYA2018-11-241-0/+1
| |
* | Replace six.string_types with native strJon Dufresne2018-11-211-2/+1
| |
* | Remove unnecessary object from class definitionsJon Dufresne2018-09-111-1/+1
|/ | | | | In Python 3, all classes are new-style classes. The object in the definition is redundant and unnecessary.
* Closes #2157: helper function ``warning()`` for HTML themes is addedTakeshi KOMIYA2018-03-191-0/+13
|
* Merge branch '1.7'Takeshi KOMIYA2018-03-181-2/+3
|\
| * Revert "Use typing.TYPE_CHECKING for typehints"Takeshi KOMIYA2018-03-131-2/+3
| | | | | | | | This reverts commit a073e17537c2aacaac305feadea58d4473ec97f4.
* | Merge branch '1.7'Takeshi KOMIYA2018-02-181-3/+2
|\ \ | |/
| * Use typing.TYPE_CHECKING for typehintsTakeshi KOMIYA2018-02-141-3/+2
| |
* | Update type annotationsTakeshi KOMIYA2018-02-041-3/+3
|/
* Use flake8-import-orderTakeshi KOMIYA2018-01-281-3/+3
|
* #4246: Limit width of text body for all themesTim Hoffmann2018-01-061-0/+20
|
* A happy new year!Takeshi KOMIYA2018-01-011-1/+1
|
* Fix mypy violationsTakeshi KOMIYA2017-04-211-2/+1
|
* Drop old methodsTakeshi KOMIYA2017-04-211-1/+1
|
* Split theme manager and theme instance classTakeshi KOMIYA2017-04-201-0/+1
|
* Fix fail to load template file if the parent template is archivedTakeshi KOMIYA2017-04-181-2/+2
|