fcfangcc / pylint-pydantic

A Pylint plugin to help Pylint understand the Pydantic
GNU General Public License v3.0
20 stars 4 forks source link

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

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

Tests

.. code:: shell

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

FAQ

Other

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

Changelog