sybil-extras is a Python library that provides additional parsers and functionalities to Sybil, the documentation testing tool. It extends Sybil's capabilities to handle more complex documentation formats and integrations, such as MyPy documentation and advanced reStructuredText features. The library is actively maintained with frequent releases, currently at version 2026.3.1.6.
pip install sybil-extrasVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates integrating a sybil-extras parser, `DOCUTILS_RST`, with `pytest` to test reStructuredText documentation. It sets up Sybil to discover and evaluate examples within .rst files.
Upgrade to `sybil-extras` version 2026.03.01.1 or later. Ensure your MyPy testing setup is compatible with current `mypy_docs` parser behavior.
Upgrade to `sybil-extras` version 2026.03.01.3 or newer to resolve crashes with `include` directives and enable Sphinx Jinja2 support. You may also need to update `docutils` and `sphinx` dependencies if issues persist.
Install optional dependencies as needed, e.g., `pip install sybil-extras[rst]` or `pip install 'sybil-extras[mypy]'` if such extras are defined, or install the base packages directly: `pip install docutils sphinx mypy`.
Ensure `sybil-extras` is installed (`pip install sybil-extras`) and that `docutils` is also installed (`pip install docutils`). Verify the import statement matches the library's structure (e.g., `from sybil_extras.parsers.rst import DOCUTILS_RST`).
First, check the example code for correctness. If `DOCUTILS_RST` or `mypy_docs` are involved, consider updating `sybil-extras` to the latest version (>=2026.03.01.3 for RST issues, >=2026.03.01.1 for MyPy issues) and ensure all required dependencies are met. Inspect the full traceback for more specific details on the command that failed.
No resource links recorded.