Xdoctest

Latest version: v1.2.0

Safety actively analyzes 688931 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 5 of 11

0.13.0

Changed
* `xdoctest.runner.doctest_module` now accepts the module object itself.
* Zero-args doctests no longer capture stdout (this prevents IPython embedding issues).

Fixed
* Fixed minor bug in zero args runner when captured stdout is None
* We now ignore doctests in setters and deleters to prevent them from clobbering doctests in getters.

0.12.0

Added
* CLI support for doctest "analysis" mode (which can be either static or dynamic).

Fixed
* Google docstrings now allow for leading whitespace in the description.
* Support python `3.9.0a5` when `eval` returns a coroutine (tentative).
* Use `from_parent` constructors for `pytest` modules when possible. Fixes deprecation warning.


TODO
* better docs
* support for numpy and RST example blocks
* make `xdoctest -m xdoctest.__init__ __doc__:0` work like `xdoctest -m xdoctest/__init__.py __doc__:0`

0.11.0

Added
* Add CI support for PyPy
* Add CI support for CPython 3.8
* Added tox
* REQUIRES directive now supports CPython, IronPython, Jython, and PyPy
* REQUIRES directive now supports PY2, PY3

0.10.3

Fixed
* The verbose flag was previously not taken into account. This is now fixed.

0.10.2

Changed
* The `--xdoc-glob` list of patterns now defaults to empty. In general it is
not safe to assume a default pattern. This means the user must opt-in to
testing text files as if they were doctests.

0.10.1

Changed
* `PythonPathContext` now works in more corner cases, although some rarer
corner cases will now break. This trade-off should be a net positive.
* Releases are handled by TravisCI and will be signed with the GPG key 98007794ED130347559354B1109AC852D297D757 (note we will rotate this key in 1 year). <- (2021-09-06) lol that did not happen, someday I'll get around to setting up rotating GPG keys.

Page 5 of 11

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.