Unofficial research mirror of the Pydantic documentation (MIT licence) for an academic study. Some details differ from the official documentation, so do not rely on this site for real projects. Official docs: docs.pydantic.dev. About this study.
Skip to content

Linting

Flake8 plugin

If using Flake8 in your project, a plugin is available and can be installed using the following:

pip install flake8-pydantic

The lint errors provided by this plugin are namespaced under the PYDXXX code. To ignore some unwanted rules, the Flake8 configuration can be adapted:

[flake8]
extend-ignore = PYD001,PYD002