summaryrefslogtreecommitdiff
path: root/sphinx/directives/code.py
Commit message (Collapse)AuthorAgeFilesLines
...
* | Move to py3 mode for mypy (and remove many "type: ignore" comments)Takeshi KOMIYA2018-12-151-2/+1
| |
* | Simplify open() call by removing default modeJon Dufresne2018-12-111-1/+1
| | | | | | | | | | | | | | | | | | The open() function opens files in read-only text mode by default. Drop the mode argument to be slightly simpler and more idiomatic. https://docs.python.org/3/library/functions.html#open > The default mode is 'r' (open for reading text, synonym of 'rt').
* | Use StringList for params to docutils because of expectedTakeshi KOMIYA2018-12-031-2/+2
| |
* | Fix annotations for Directives (Replace N_co with nodes.Node)Takeshi KOMIYA2018-12-011-5/+5
| |
* | Fix annotations for directivesTakeshi KOMIYA2018-11-291-14/+17
| |
* | refactor: Use super() to call methods of superclassTakeshi KOMIYA2018-11-281-1/+1
| |
* | Add sphinx.util.typing:unicode to help mypy-3 migrationTakeshi KOMIYA2018-11-241-0/+1
| |
* | Merge branch '1.8'Takeshi KOMIYA2018-11-011-1/+1
|\ \ | |/
| * Fix #5471: Show appropriate warning for deprecated APIsTakeshi KOMIYA2018-10-171-1/+1
| |
* | Merge branch 'master' into HEADTakeshi KOMIYA2018-09-221-2/+2
|\ \
| * | Prefer builtin open() over io.open() and codecs.open()Jon Dufresne2018-09-111-2/+2
| |/ | | | | | | | | | | | | | | | | | | | | | | In Python3, the functions io.open() is an alias of the builtin open() and codecs.open() is functionally equivalent. To reduce indirection, number of imports, and number of patterns, always prefer the builtin. https://docs.python.org/3/library/io.html#high-level-module-interface > io.open() > > This is an alias for the builtin open() function.
* | 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.
* Merge branch '1.7'Takeshi KOMIYA2018-06-091-1/+1
|\
| * Fix mypy violationTakeshi KOMIYA2018-06-091-1/+1
| |
* | Fix #4927: Display a warning when invalid values are passed to ↵Takeshi KOMIYA2018-05-221-8/+2
| | | | | | | | linenothreshold option of highlight directive
* | Deprecate highlightlang directiveTakeshi KOMIYA2018-04-151-1/+14
| | | | | | | | highlightlang directive is not documented, and marked as old in v0.2.
* | Add SphinxDirective as a helperTakeshi KOMIYA2018-03-311-11/+10
| |
* | Merge branch '1.7'Takeshi KOMIYA2018-03-181-2/+2
|\ \ | |/
| * Revert "Use typing.TYPE_CHECKING for typehints"Takeshi KOMIYA2018-03-131-2/+2
| | | | | | | | This reverts commit a073e17537c2aacaac305feadea58d4473ec97f4.
* | Merge branch 'master' into dont_stringify_exceptionsTakeshi KOMIYA2018-03-041-3/+3
|\ \
| * | Make console and warning messages translatableTakeshi KOMIYA2018-03-031-3/+3
| | |
* | | Use six.text_type to stringify exceptionsTakeshi KOMIYA2018-03-031-2/+3
|/ / | | | | | | | | On py2, an exception having i18nized message causes UnicodeError on stringify. This uses ``six.text_type()`` to stringify them instead.
* | Merge branch '1.7'Takeshi KOMIYA2018-02-181-2/+2
|\ \ | |/
| * Use typing.TYPE_CHECKING for typehintsTakeshi KOMIYA2018-02-141-2/+2
| |
* | Update type annotationsTakeshi KOMIYA2018-02-041-0/+1
|/
* Use flake8-import-orderTakeshi KOMIYA2018-01-281-1/+1
|
* Merge branch 'happy_new_year' into masterTakeshi KOMIYA2018-01-011-1/+1
|\
| * A happy new year!Takeshi KOMIYA2018-01-011-1/+1
| |
* | remove unnecessary else clauses in for loopSrinivas Reddy Thatiparthy2017-08-191-8/+7
| |
* | pycode: Replace pgen2 by own parserTakeshi KOMIYA2017-07-261-1/+1
|/
* Fix #3833: command line messages are translated unintentionallyTakeshi KOMIYA2017-06-251-11/+11
|
* Fix #3770: Fix KeyError from code-block directiveTakeshi KOMIYA2017-05-211-2/+2
|
* Fix #3755: incorrectly warns about dedent with literalincludeTakeshi KOMIYA2017-05-191-6/+9
|
* Fix typo in 'emphasize-lines'Ray Lehtiniemi2017-04-121-1/+1
| | | | Signed-off-by: Ray Lehtiniemi <rayl@mail.com>
* Fix #3108: Show warning if :start-at: and other literalinclude options does ↵Takeshi KOMIYA2017-03-261-0/+10
| | | | not match to the text
* Merge branch 'stable'Takeshi KOMIYA2017-03-261-1/+1
|\
| * Year++Takeshi KOMIYA2017-03-261-1/+1
| |
* | Upgrade to mypy-0.5Takeshi KOMIYA2017-03-031-1/+1
| |
* | Fix a loopTakeshi KOMIYA2017-02-251-1/+1
| |
* | literalinclude directive allows combination of :pyobject: and :lines:Takeshi KOMIYA2017-02-221-1/+0
| |
* | Show warning if :lines: and :emphasize-lines: get out of rangeTakeshi KOMIYA2017-02-211-18/+36
| |
* | Fix flake8 violationTakeshi KOMIYA2017-02-181-1/+1
| |
* | Emit warning if over dedent has detected on ``literalinclude`` directiveTakeshi KOMIYA2017-02-181-10/+18
| |
* | Fix flake8 violationTakeshi KOMIYA2017-02-181-1/+1
| |
* | Merge branch 'master' into refactor_literalincludeTakeshi KOMIYA2017-02-171-1/+1
|\ \
| * \ Merge branch 'master' into literalincludelinesJean-François B2017-02-131-5/+17
| |\ \
| * | | Fix an issue with lineno-start and a flake8 violationjfbu2017-02-101-4/+6
| | | |
| * | | If ``:start-after:`` is used, make ``:lines:`` relative (close: #3412)jfbu2017-02-101-27/+29
| | |/ | |/|
* | | Add testcase for :lineno-match: optionTakeshi KOMIYA2017-02-171-7/+7
| | |
* | | parselinenos() raises out of range errorTakeshi KOMIYA2017-02-131-5/+1
| | |