mirror of
https://github.com/kennethreitz/pydantic.git
synced 2026-06-05 23:00:18 +00:00
f341049b9e
* Remove Cython * fix CI * fix coverage * fix tests * switching to pypyroject.toml * pre-commit all and use pre-commit for linting * no mypy tests on macos and windows on ci, use flake8-pyproject * fix docs and tests CI * check build is working * drop pytest-cov * window and macos ci with 3.11, reduce filtering * use pip-tools to pin all dependencies * fix docs and fastapi tests * fix test deps for 3.7 * no cache on tests job * revert fastapi changes, fix coverage * fix mypy coverage * test with older mypy * dotenv not required for mypy tests * split testing requirements std and extra * typo * @PrettyWood comments * correct branch name * mypy python_version and pr template
749 B
749 B
!!! note Admission: I (the primary developer of pydantic) also develop python-devtools.
python-devtools (pip install devtools) provides a number of tools which
are useful during Python development, including debug() an alternative to print() which formats output in a way
which should be easier to read than print as well as giving information about which file/line the print statement
is on and what value was printed.
pydantic integrates with devtools by implementing the __pretty__ method on most public classes.
In particular debug() is useful when inspecting models:
{!.tmp_examples/devtools_main.md!}
Will output in your terminal:
{!.tmp_examples/devtools_main.html!}