By now, the pymdownx.snippets extension that retrieves sections from plain pytest Python files seems to be my way to go. Tests run code as always, which is also formatted as always, specifically marked sections end up in docs. Win, win, win by grace of the scissors operator.
this post was submitted on 06 Jul 2023
4 points (100.0% liked)
Python
1929 readers
1 users here now
A community for talking about the Python programming language.
founded 1 year ago
MODERATORS