summaryrefslogtreecommitdiff
path: root/sphinx/ext/coverage.py
Commit message (Collapse)AuthorAgeFilesLines
* refactor: Update type annotations in sphinx.ext.*Takeshi KOMIYA2020-02-161-1/+1
|
* A happy new year!Takeshi KOMIYA2020-01-011-1/+1
|
* mypy: Enable disallow_incomplete_defs flag for type checkingTakeshi KOMIYA2019-12-301-1/+1
|
* Switch uses of __import__ to importlib.get_module()Jon Dufresne2019-08-171-1/+2
| | | | | | | | | | | | | | | The Python docs for __import__ recommend using importlib.get_module(). https://docs.python.org/3/library/functions.html#__import__ > Note: This is an advanced function that is not needed in everyday > Python programming, unlike importlib.import_module(). As importlib.get_module() uses the Python module cache and returns the module, this also allows simplifying many module cache checks of use of sys.modules. importlib.get_module() has been available since Python 3.3.
* Migrate to py3 style type annotation: sphinx.ext.coverageTakeshi KOMIYA2019-07-011-27/+13
|
* Support coverage_ignore_pyobjects in the coverage builderAdrián Chaves2019-05-151-3/+14
|
* 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-13/+12
| |
* | 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').
* | Add sphinx.util.typing:unicode to help mypy-3 migrationTakeshi KOMIYA2018-11-241-0/+1
| |
* | Merge branch '1.8'Takeshi KOMIYA2018-10-161-1/+1
|\ \ | |/
| * Fix mypy violationsTakeshi KOMIYA2018-10-161-1/+1
| |
* | Remove uses of six.moves that did not cause any type errorsJon Dufresne2018-09-231-2/+1
| | | | | | | | | | Removal of the remaining imports may require passing "--python-version 3.5" to the mypy command.
* | Remove use of six.iteritems()Jon Dufresne2018-09-111-4/+3
|/ | | | In Python 3, dict.items() is always an iterator.
* Initial commitAndrés Delfino2018-06-071-1/+1
|
* 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.
* | Make console and warning messages translatableTakeshi KOMIYA2018-03-031-5/+6
|/
* Use typing.TYPE_CHECKING for typehintsTakeshi KOMIYA2018-02-141-2/+2
|
* Use flake8-import-orderTakeshi KOMIYA2018-01-281-1/+1
|
* builders: Add 'Builder.epilog' optionStephen Finucane2018-01-111-1/+5
| | | | | | | | | | | | This allows builders to emit a final epilog message containing information such as where resulting files can be found. This is only emitted if the build was successful. This allows us to remove this content from the 'make_mode' tool and the legacy 'Makefile' and 'make.bat' templates. There's room for more dramatic simplification of the former, but this will come later. Signed-off-by: Stephen Finucane <stephen@that.guru>
* A happy new year!Takeshi KOMIYA2018-01-011-1/+1
|
* 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
| |
* | Use loggersTakeshi KOMIYA2017-01-021-17/+16
| |
* | Adjust code to type annotationTakeshi KOMIYA2016-12-031-1/+1
| |
* | Add type-check annotations to sphinx.extTakeshi KOMIYA2016-11-161-7/+23
|/
* Refactor code using ``with`` syntaxTakeshi KOMIYA2016-05-261-16/+4
|
* Obligatory copyright update.Georg Brandl2016-01-141-1/+1
|
* Closes #1949: Use ``safe_getattr`` in the coverage builder to avoid aborting ↵Georg Brandl2015-07-251-1/+5
| | | | with descriptors that have custom behavior.
* Support PEP-440 version spec for developers.shimizukawa2015-03-141-1/+1
|
* ext: pep8 fixesGeorg Brandl2015-03-081-1/+2
|
* Merge branch 'stable'Georg Brandl2015-01-031-1/+1
|\
| * all: update copyrightGeorg Brandl2015-01-031-1/+1
| |
* | improve C coverage outputGeorg Brandl2014-10-061-3/+3
| |
* | [WIP] parallel readGeorg Brandl2014-09-221-1/+1
| |
* | Change extension setup() return value to a dictionary of metadata.Georg Brandl2014-09-221-1/+1
| | | | | | | | This makes it possible to introduce more metadata values later.
* | Return version from setup() for all sphinx.ext extensions.Georg Brandl2014-09-031-0/+2
| |
* | remove unnecessary `list()` wrappers. In some places, I replaced ↵Takayuki Shimizukawa2014-05-251-2/+1
| | | | | | | | `iterable.sort()` with `sorted(iterable)`.
* | wrap py3 iterators with list() for each places that expect a list object. ↵Takayuki Shimizukawa2014-04-301-1/+1
| | | | | | | | refs #1350.
* | use six privided iteritems(),itervalues() to support py2/py3 in one source. ↵Takayuki Shimizukawa2014-04-291-3/+4
| | | | | | | | refs #1350.
* | use six privided functions/classes to support py2/py3 in one source. refs #1350.Takayuki Shimizukawa2014-04-291-1/+2
| |
* | Update copyright year.Georg Brandl2014-03-011-1/+1
|\ \ | |/
| * Update copyright year.Georg Brandl2014-03-011-1/+1
| |
* | Modernize the code now that Python 2.5 is no longer supportedDmitry Shachnev2014-01-191-1/+1
|/ | | | | | | | | | | - Use print function instead of print statement; - Use new exception handling; - Use in operator instead of has_key(); - Do not use tuple arguments in functions; - Other miscellaneous improvements. This is based on output of `futurize --stage1`, with some manual corrections.
* Copyright update.Georg Brandl2013-01-011-1/+1
|