A Pylint plugin to help Pylint understand the Pydantic
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pylint_pydantic-0.4.1-py3-none-any.whl.
File metadata
- Download URL: pylint_pydantic-0.4.1-py3-none-any.whl
- Upload date:
- Size: 16.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.24
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d1b937abe5c346d38de69ee1ada80c93d38ee2356addbabb687e2eb44036ac93
|
|
| MD5 |
cdcedb9baf8b872e42796df067a80002
|
|
| BLAKE2b-256 |
2dac5de3c91c7f9354444af251f053cc9953c89cce1defa74b907f67be4f770a
|