Skip to main content

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

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

Tests

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)

Other

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

pylint_pydantic-0.1.4-py3-none-any.whl (14.6 kB view details)

Uploaded Python 3

File details

Details for the file pylint_pydantic-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: pylint_pydantic-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 14.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.1

File hashes

Hashes for pylint_pydantic-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d42d9e95255b2f70f82a674cec159f417263363c7da0e28998964d83d7330c72
MD5 b5be0502a111504711433cff7cf765c5
BLAKE2b-256 8ba9bdc0d6534a0b250f93c78b66116c82bff02c8302111f0a5bd26823328484

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page