./devel/py-test-examples, Pytest plugin for testing examples in docstrings and markdown files

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 0.0.15, Package name: py312-test-examples-0.0.15, Maintainer: pkgsrc-users

Pytest plugin for testing Python code examples in docstrings and markdown files.

pytest-examples can:
* lint code examples using ruff and black
* run code examples
* run code examples and check print statements are inlined correctly
in the code

It can also update code examples in place to format them and insert
or update print statements.


Master sites:

Filesize: 20.284 KB

Version history: (Expand)


CVS history: (Expand)


   2024-11-25 11:40:56 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-test-examples: updated to 0.0.15

0.0.15
Allow matching prefix with curly braces in CodeExample.prefix_settings()
   2024-11-17 13:49:05 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-test-examples: updated to 0.0.14

0.0.14

Adopt uv
lint: raise timeout to avoid flakyness
support for calling a function/coroutine, e.g. main within examples
Fix for single line docstrings
Typechecking
lint: use python helper to point to the ruff bin
Lax whitespace
   2024-08-14 11:07:28 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-test-examples: updated to 0.0.13

0.0.13

Add new module to sys.modules so that namespace ops are sound
   2024-07-14 13:58:24 by Thomas Klausner | Files touched by this commit (4) | Package updated
Log message:
devel/py-test-examples: import py-test-examples-0.0.12

Pytest plugin for testing Python code examples in docstrings and markdown files.

pytest-examples can:
* lint code examples using ruff and black
* run code examples
* run code examples and check print statements are inlined correctly
  in the code

It can also update code examples in place to format them and insert
or update print statements.