Metadata-Version: 2.1
Name: pylint-pydantic
Version: 0.1.5
Summary: A Pylint plugin to help Pylint understand the Pydantic
Home-page: https://github.com/fcfangcc/pylint-pydantic
Author: fcfangcc
Author-email: swjfc22@163.com
License: GPLv3
Keywords: pylint,pydantic
Platform: UNKNOWN
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Quality Assurance
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Python: >=3.6
License-File: LICENSE
Requires-Dist: pylint (<3.0,>2.0)
Requires-Dist: pydantic (<2.0)
Requires-Dist: pylint-plugin-utils

pylint-pydantic
================
A Pylint plugin to help Pylint understand the Pydantic

How to use
===============
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

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

Tests
============
.. code:: shell

    pylint --rcfile=pylintrc --load-plugins pylint_pydantic examples/base_model.py
    ------------------------------------
    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 <https://github.com/samuelcolvin/pydantic/issues/1961>`_)

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



