A Pylint plugin to help Pylint understand the Pydantic
A Pylint plugin to help Pylint understand the Pydantic
Installation
.. code:: shell
pip install pylint-pydantic
Use in console
.. code:: shell
pylint --load-plugins pylint_pydantic xxxxx
Use in vscode,settings.json add item
.. code:: shell
"pylint.args": ["--load-plugins", "pylint_pydantic"]
# in old vscode version maybe
"python.linting.pylintArgs": ["--load-plugins", "pylint_pydantic"]
.. code:: shell
pylint --rcfile=pylintrc --load-plugins pylint_pydantic tests/
------------------------------------
Your code has been rated at 10.00/10
pylint: No name 'BaseModel' in module 'pydantic'
?
Add --extension-pkg-whitelist='pydantic'
parameter (see #1961 <https://github.com/samuelcolvin/pydantic/issues/1961>
_)If you have any questions, please create a issue. https://github.com/fcfangcc/pylint-pydantic/issues
model_validator