Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pylint-pydantic

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pylint-pydantic

A Pylint plugin to help Pylint understand the Pydantic

  • 0.3.4
  • PyPI
  • Socket score

Maintainers
1

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

  • 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

Changelog

  • 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

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc