Skip to main content

pylint-pydantic

A Pylint plugin to help Pylint understand the Pydantic

How to use

Installation

pip install pylint-pydantic

Use in console

pylint --load-plugins pylint_pydantic xxxxx

Use in vscode,settings.json add item

"pylint.args": ["--load-plugins", "pylint_pydantic"]
# in old vscode version maybe
"python.linting.pylintArgs": ["--load-plugins", "pylint_pydantic"]

Tests

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

FAQ

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

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

Other

If you have any questions, please create a issue. https://github.com/fcfangcc/pylint-pydantic/issues

Changelog

  • v0.4.0: Support pylint4,Remove support for python3.9

  • v0.3.4: fixed #35 #34

  • v0.3.1: fixed #29

  • v0.3.0: support pylint3

  • v0.2.4: fix pydantic.Field with BaseModel support

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

  • v0.2.1: support model_validator

  • v0.2.0: support Pydantic V2

Release files for pylint-pydantic 0.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for pylint-pydantic 0.4.1
File Interpreter ABI Platform
pylint_pydantic-0.4.1-py3-none-any.whl Python 3 none any Details

Release files / pylint_pydantic-0.4.1-py3-none-any.whl

Download URL pylint_pydantic-0.4.1-py3-none-any.whl
Size 16.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d1b937abe5c346d38de69ee1ada80c93d38ee2356addbabb687e2eb44036ac93
BLAKE2b-256 checksum
How to use checksums
2dac5de3c91c7f9354444af251f053cc9953c89cce1defa74b907f67be4f770a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.24

Release history Release notifications | RSS feed

This release

0.4.1 This release

1 release file

0.4.0

1 release file

0.3.5

1 release file

0.3.4

1 release file

0.3.3

1 release file

0.3.2

1 release file

0.3.1

1 release file

0.3.0

1 release file

0.2.4

1 release file

0.2.3

1 release file

0.2.2

1 release file

0.2.1

1 release file

0.2.0

1 release file

0.1.8

1 release file

0.1.7

1 release file

0.1.6

1 release file

0.1.5

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page