summaryrefslogtreecommitdiff
path: root/sphinx/ext/doctest.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix COM812Adam Turner2023-02-181-3/+3
|
* Run pyupgrade (#11070)Adam Turner2023-01-021-7/+7
|
* Use PEP 604 typesAdam Turner2023-01-011-4/+4
|
* Use PEP 595 typesAdam Turner2023-01-011-15/+14
|
* Insert ``from __future__ import annotations``Adam Turner2023-01-011-0/+2
|
* Enable Ruff's flake8-bandit checksAdam Turner2022-12-291-2/+2
|
* Enable Ruff's pygrep-hooks checksAdam Turner2022-12-291-1/+1
|
* Fix highlighting lexersAdam Turner2022-09-251-8/+2
| | | | - Ensure `pycon3` is always normalised to `pycon`
* Correct `is_allowed_version()`'s example tests (#10802)Tony Narlock2022-09-091-3/+3
|
* Improve static typing strictness (#10569)danieleades2022-07-181-6/+6
|
* Update PEP links in docsHugo van Kemenade2022-03-241-1/+1
|
* Remove copyright and licence fieldsAdam Turner2022-02-201-3/+0
|
* Conform to PEP 257 summary line conventionsAdam Turner2022-02-201-2/+3
|
* Fix module docstring indentationAdam Turner2022-02-201-3/+3
|
* 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-1/+1
| | | | | | | | 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
|
* refactor: Use PEP-526 based variable annotationTakeshi KOMIYA2021-04-081-7/+7
|
* refactor: Add a type alias for the option_spec of directives; OptionSpecTakeshi KOMIYA2021-03-131-5/+10
|
* 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/+2
| |
* | Merge branch '3.x'Takeshi KOMIYA2020-11-121-1/+1
|\ \ | |/
| * Sort imports with isortFrançois Freitag2020-11-111-1/+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.
* | Merge branch '3.x'Takeshi KOMIYA2020-08-081-1/+11
|\ \ | |/
| * Close #6698: doctest: Add :no-trim-doctest-flags: optionsTakeshi KOMIYA2020-08-051-1/+11
| | | | | | | | | | | | | | 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).
| * Add stacklevel parameter to warnings.warn() callTakeshi KOMIYA2020-05-031-1/+1
| |
* | Remove deprecated features marked as RemovedInSphinx40WarningTakeshi KOMIYA2020-04-291-8/+0
| |
* | Hello TYPE_CHECKING!Takeshi KOMIYA2020-03-071-2/+2
| |
* | Deprecate codes for python 3.5Takeshi KOMIYA2020-03-071-2/+1
|/
* A happy new year!Takeshi KOMIYA2020-01-011-1/+1
|
* Replace `a and b or c` by the more legible `b if a or c`.Antony Lee2019-12-211-3/+3
|
* Fix mypy violations (for mypy-0.730)Takeshi KOMIYA2019-10-061-2/+2
|
* Fix type annotation for python 3.5.1Takeshi KOMIYA2019-07-131-1/+2
|
* Merge branch '2.1.3' into 2.0Takeshi KOMIYA2019-07-131-1/+1
|\
| * Fix mypy violations (for mypy-0.720)Takeshi KOMIYA2019-07-131-1/+1
| |
* | Migrate to py3 style type annotation: sphinx.ext.doctestTakeshi KOMIYA2019-07-041-61/+38
|/
* Merge branch '2.0'Takeshi KOMIYA2019-03-071-1/+1
|\
| * Clean up import for annotationsTakeshi KOMIYA2019-03-061-1/+1
| |
* | Add a helper method ``SphinxDirective.set_source_info()``Takeshi KOMIYA2019-03-031-2/+1
|/
* Merge branch '1.8' into 2.0Takeshi KOMIYA2019-03-021-11/+19
|\
| * Fix #6068: doctest: ``skipif`` option may remove the code block from ↵Takeshi KOMIYA2019-02-281-10/+19
| | | | | | | | documentation
* | 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.
* | 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
* | Merge branch 'master' into 5770_doctest_refers_highlight_languageTakeshi KOMIYA2018-12-161-20/+19
|\ \