Skip to main content

A Pylint plugin to help Pylint understand the Pydantic

Project description


A Pylint plugin to help Pylint understand the Pydantic

How to use


pip install pylint-pydantic

Use in console

pylint --load-plugins pylint_pydantic xxxxx

Use in vscode,settings.json add item

"python.linting.pylintArgs": ["--load-plugins", "pylint_pydantic"]


pylint --rcfile=pylintrc --load-plugins pylint_pydantic examples/
Your code has been rated at 10.00/10


  • How to resolve pylint: No name ‘BaseModel’ in module ‘pydantic’?

    Add –extension-pkg-whitelist=’pydantic’ parameter (see #1961)


If you have any questions, please create a issue.


  • v0.2.0: support Pydantic V2

  • v0.2.1: support model_validator

  • v0.2.2: fix model_validator keyword mode, pydatic>=2.0.3

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release. See tutorial on generating distribution archives.

Built Distribution

pylint_pydantic-0.2.4-py3-none-any.whl (15.8 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page