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 details)
Built Distribution
File details
Details for the file readmetester-2.4.0.tar.gz
.
File metadata
- Download URL: readmetester-2.4.0.tar.gz
- Upload date:
- Size: 11.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.1 CPython/3.8.13 Darwin/22.2.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a8352f4827a8d4134eb49dca7a91b50bf6470d39e8cca6c1ae1ca43ea436e96 |
|
MD5 | f5cb5388541b516d3d9ff05c60dcf9f2 |
|
BLAKE2b-256 | bad9ac1951728c4f281a4214f4a23355863ade3158eee78d99047981a44c92af |
File details
Details for the file readmetester-2.4.0-py3-none-any.whl
.
File metadata
- Download URL: readmetester-2.4.0-py3-none-any.whl
- Upload date:
- Size: 11.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.1 CPython/3.8.13 Darwin/22.2.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01aba0b9a99f676e193ae42304f19d762a1d5a8147a6a145739f11708ccd3ef6 |
|
MD5 | 7a4603273fbc01f35721f55c12a13144 |
|
BLAKE2b-256 | bb313610f114298a3b4f5821f2f0da42800df199170d32762c3081bbdd5b2c06 |