pylint-pydantic


Namepylint-pydantic JSON
Version 0.3.5 PyPI version JSON
download
home_pagehttps://github.com/fcfangcc/pylint-pydantic
SummaryA Pylint plugin to help Pylint understand the Pydantic
upload_time2025-01-07 01:38:07
maintainerNone
docs_urlNone
authorfcfangcc
requires_python>=3.8
licenseGPLv3
keywords pylint pydantic
VCS
bugtrack_url
requirements pylint pydantic pylint_plugin_utils
Travis-CI No Travis.
coveralls test coverage No coveralls.
            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



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/fcfangcc/pylint-pydantic",
    "name": "pylint-pydantic",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "pylint, pydantic",
    "author": "fcfangcc",
    "author_email": "swjfc22@163.com",
    "download_url": null,
    "platform": null,
    "description": "pylint-pydantic\n================\nA Pylint plugin to help Pylint understand the Pydantic\n\nHow to use\n===============\nInstallation\n\n.. code:: shell\n\n    pip install pylint-pydantic\n\nUse in console\n\n.. code:: shell\n\n    pylint --load-plugins pylint_pydantic xxxxx\n\nUse in vscode,settings.json add item\n\n.. code:: shell\n\n    \"pylint.args\": [\"--load-plugins\", \"pylint_pydantic\"]\n    # in old vscode version maybe\n    \"python.linting.pylintArgs\": [\"--load-plugins\", \"pylint_pydantic\"]\n\nTests\n============\n.. code:: shell\n\n    pylint --rcfile=pylintrc --load-plugins pylint_pydantic tests/\n    ------------------------------------\n    Your code has been rated at 10.00/10\n\nFAQ\n=====================\n- How to resolve `pylint: No name 'BaseModel' in module 'pydantic'`?\n    Add `--extension-pkg-whitelist='pydantic'` parameter (see `#1961 <https://github.com/samuelcolvin/pydantic/issues/1961>`_)\n\nOther\n=====================\nIf you have any questions, please create a issue.\nhttps://github.com/fcfangcc/pylint-pydantic/issues\n\n\nChangelog\n=====================\n\n- v0.3.4: fixed #35 #34\n- v0.3.1: fixed #29\n- v0.3.0: support pylint3\n- v0.2.4: fix pydantic.Field with BaseModel support\n- v0.2.2: fix model_validator keyword **mode**, pydatic>=2.0.3\n- v0.2.1: support `model_validator`\n- v0.2.0: support Pydantic V2\n\n\n",
    "bugtrack_url": null,
    "license": "GPLv3",
    "summary": "A Pylint plugin to help Pylint understand the Pydantic",
    "version": "0.3.5",
    "project_urls": {
        "Homepage": "https://github.com/fcfangcc/pylint-pydantic"
    },
    "split_keywords": [
        "pylint",
        " pydantic"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "13b657b898006cb358af02b6a5b84909630630e89b299e7f9fc2dc7b3f0b61ef",
                "md5": "2f6841e5df6bab2df6767349ebad55e1",
                "sha256": "e7a54f09843b000676633ed02d5985a4a61c8da2560a3b0d46082d2ff171c4a1"
            },
            "downloads": -1,
            "filename": "pylint_pydantic-0.3.5-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "2f6841e5df6bab2df6767349ebad55e1",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 16139,
            "upload_time": "2025-01-07T01:38:07",
            "upload_time_iso_8601": "2025-01-07T01:38:07.614035Z",
            "url": "https://files.pythonhosted.org/packages/13/b6/57b898006cb358af02b6a5b84909630630e89b299e7f9fc2dc7b3f0b61ef/pylint_pydantic-0.3.5-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-01-07 01:38:07",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "fcfangcc",
    "github_project": "pylint-pydantic",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "pylint",
            "specs": [
                [
                    ">",
                    "2.0"
                ],
                [
                    "<",
                    "4.0"
                ]
            ]
        },
        {
            "name": "pydantic",
            "specs": [
                [
                    "<",
                    "3.0"
                ]
            ]
        },
        {
            "name": "pylint_plugin_utils",
            "specs": []
        }
    ],
    "lcname": "pylint-pydantic"
}
        
Elapsed time: 2.74340s