skillfed

pylint-pydantic

A Pylint plugin to help Pylint understand the Pydantic

pylint-pydantic v0.4.1 1.4M downloads/30d#4,014 on PyPI19
Copyleft license GPLv3 AGING released

What it is and what it does

pylint-pydantic is a Pylint plugin that teaches Pylint how to correctly analyze code using Pydantic models. Pylint normally flags Pydantic constructs—like BaseModel, Field definitions, and validators—as undefined or invalid, generating false positives that clutter lint reports. This plugin bridges that gap by making Pylint aware of Pydantic's API surface.

You install it alongside Pylint and Pydantic, then activate it by passing `--load-plugins pylint_pydantic` to Pylint or configuring it in your editor settings (VSCode, for example). It supports Pydantic v2 features including model validators and works with Python 3.10 through 3.14. The plugin is small and has low install friction, requiring only Pylint, Pydantic, and pylint-plugin-utils as dependencies.

Use it for:

  • Suppress false Pylint warnings when using Pydantic BaseModel and Field in data validation schemas.
  • Integrate Pydantic linting into VSCode or other IDE workflows without disabling Pylint entirely.
  • Maintain consistent code quality checks in projects that rely on Pydantic for API request/response validation.
  • Reduce noise in CI/CD lint reports by correctly recognizing Pydantic model attributes and validators.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

A Pylint plugin that extends Pylint's understanding of Pydantic models, reducing false positives when linting code that uses Pydantic.

Yes, if you use Pydantic and Pylint together. The plugin solves a real problem—Pylint's false positives on Pydantic code—with low friction and no security issues. The GPLv3 license is a blocker only for closed-source projects. Maintenance is aging (291 days since last release), so verify compatibility with your specific Pylint and Pydantic versions before relying on it in production.

Install

pylint-pydantic on PyPI

pip

pip install pylint-pydantic

uv

uv add pylint-pydantic

poetry

poetry add pylint-pydantic

Installing pylint-pydantic

Before you install

Low install friction with three straightforward dependencies. Maintenance status is aging—last release was 291 days ago, though the repository remains active and the package supports current Python versions (3.10–3.14).

License in practice

Licensed under GPLv3 (copyleft). Any derivative work or distribution must also be open-source under GPLv3; this is a significant constraint for proprietary projects.

Quickstart

pip install pylint-pydantic

pylint --load-plugins pylint_pydantic your_code.py

Requires Python 3.10 or later. Pylint and Pydantic must be installed as runtime dependencies.

Verify before relying

  • Whether the plugin fully supports all Pydantic v2 features or if gaps remain beyond the documented model_validator support.
  • Current compatibility with the latest Pylint 4.x versions and whether all edge cases are handled.
  • Whether the 291-day release gap indicates active maintenance or dormancy.

Package facts

License GPLv3 (copyleft)
Python support supports the current Python release (>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies 3 — pylint, pydantic, pylint-plugin-utils
Maintenance aging — 291 days since the last release
Last repo commit
First released
Downloads 1,351,698/month — #4,014 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: pylint_pydantic-0.4.1-py3-none-any.whl

Keywords: pylint, pydantic

Environment :: ConsoleIntended Audience :: DevelopersProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Software Development :: Quality Assurance

Tags

pylint pydantic pluginpydantic linting supportpylint false positives pydanticcode quality pydantic modelspylint basemodel integrationpydantic type checking lint
lintingpydanticcode-quality

More Quality Assurance packages