Pytest plugin for testing examples in docstrings and markdown files
Pytest-examples provides functionality for testing Python code examples in docstrings and markdown files, with its main features being:
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
Linter | Message | Location |
---|---|---|
inputs-should-be-native Identify inputs that should be native inputs | 'python-pytest' should probably be a native input |
|
formatting Look for formatting issues in the source | line 1868 is way too long (91 characters) |
|