Parse, test, and assert RST code-blocks
Reason this release was yanked:
Cannot import `main` from entry point
Project description
Parse, test, and assert RST code-blocks
Installation
$ pip install readmetester
Usage
readmetester [-h] [--version] [README.rst]
If a README.rst file is present in the current working directory it will be used if no arguments are provided
$ readmetester README.rst
Documenting
Python code begins with ">>> "
Continuation lines begin with "... "
Expected output can be quoted or unquoted
.. code-block:: python
>>> n = [
... "zero",
... "one",
... "two",
... ]
>>> for c, i in enumerate(n):
... print(c, i)
0 zero
1 one
2 two
Styles can be configured in a pyproject.toml file
[tool.readmetester]
style = "monokai"
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
readmetester-2.4.0.tar.gz
(11.4 kB
view hashes)
Built Distribution
Close
Hashes for readmetester-2.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01aba0b9a99f676e193ae42304f19d762a1d5a8147a6a145739f11708ccd3ef6 |
|
MD5 | 7a4603273fbc01f35721f55c12a13144 |
|
BLAKE2b-256 | bb313610f114298a3b4f5821f2f0da42800df199170d32762c3081bbdd5b2c06 |