summaryrefslogtreecommitdiff
path: root/tests/test_util_nodes.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix COM812Adam Turner2023-02-181-3/+3
|
* Adopt ``profile = "black"`` for ``isort``Adam Turner2023-01-071-2/+8
| | | | This allows using Ruff's import sorting fixers
* Suppress ``ValueError`` in ``apply_source_workaround`` (#11092)Adam Turner2023-01-051-2/+22
|
* Insert ``from __future__ import annotations``Adam Turner2023-01-011-0/+2
|
* Enable Ruff's pylint 'PLC2201' checkAdam Turner2022-12-301-3/+3
| | | | Address all cases where the comparison order check is violated
* Catch `DeprecationWarning` for `docutils.frontend.OptionParser`Adam Turner2022-04-221-2/+7
|
* 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
|
* test: Migrate to Node.findall() from Node.traverse()Takeshi KOMIYA2022-01-031-7/+7
|
* A happy new year!Takeshi KOMIYA2022-01-011-1/+1
|
* refactor: Node.traverse() will returns generator since 0.18Takeshi KOMIYA2021-10-101-7/+7
|
* 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-5/+3
| | | | | | | | | | | | 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 #7301: capital characters are not allowed for node_idTakeshi KOMIYA2020-03-291-5/+5
|
* Fix #7301: Allow . and _ for node_idTakeshi KOMIYA2020-03-221-3/+3
| | | | | | | | | | | | In development of 3.0, Sphinx starts to obey to the rule of "Identifier Normalization" of docutils. This extends it to allow dots(".") and underscores("_") for node identifier. It allows Sphinx to generate node identifier from source string as possible as it is (bacause dots and underscores are usually used in many programming langauges). This change will keep not to break hyperlinks as possible.
* test: Add testcase for make_id()Takeshi KOMIYA2020-03-201-9/+28
|
* Add sphinx.util.nodes:make_id() to generate better node_idTakeshi KOMIYA2020-01-021-1/+18
|
* A happy new year!Takeshi KOMIYA2020-01-011-1/+1
|
* Fix #6375: extlinks: Cannot escape angle brackets in link captionTakeshi KOMIYA2019-05-161-1/+16
|
* 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.
* | Fix #5648: NodeMatcher matches Text node on attribute matchTakeshi KOMIYA2018-11-251-0/+4
| |
* | Add NodeMatcher; a helper class for Node.traverse()Takeshi KOMIYA2018-08-261-1/+34
|/
* Fix flake8 violationsTakeshi KOMIYA2018-02-191-3/+3
|
* A happy new year!Takeshi KOMIYA2018-01-011-1/+1
|
* Year++Takeshi KOMIYA2017-03-261-1/+1
|
* pytest optimizatoin:shimizukawa2017-01-081-78/+58
| | | | | | | | - remote using deprecated decorators - remove gen_with_app - remove yield testing - remove pytest warnings - refactoring
* Fix #185: References to section title including raw node has brokenTakeshi KOMIYA2016-12-171-1/+13
|
* Fix flake8 violation under tests/Takeshi KOMIYA2016-06-121-3/+0
|
* Obligatory copyright update.Georg Brandl2016-01-141-1/+1
|
* fix line lengthshimizukawa2015-11-291-2/+2
|
* Fix #1994: More supporting non-standard parser (like recommonmark parser) ↵shimizukawa2015-09-131-1/+35
| | | | for Translation and WebSupport feature. Now node.rawsource is fall backed to node.astext() during docutils transforming.
* Merge branch 'stable'Georg Brandl2015-01-031-1/+1
|\
| * all: update copyrightGeorg Brandl2015-01-031-1/+1
| |
* | Complete test suite overhaul.Georg Brandl2014-09-211-121/+121
|/ | | | | | | | | | | | * rename a few test modules to make the names more consistent * do not copy/use Sphinx from build/ (unnecessary without 2to3) * use a temporary dir for *all* test projects, the source tree will stay pristine that way (default is tests/build) * speed up tests by ~3x by splitting up test projects and avoiding rebuilds
* * gettext does not extract nodes.line in a table or list. Closes #1477Takayuki Shimizukawa2014-08-261-0/+121