pylint-pydantic


Namepylint-pydantic JSON
Version 0.3.2 PyPI version JSON
download
home_pagehttps://github.com/fcfangcc/pylint-pydantic
SummaryA Pylint plugin to help Pylint understand the Pydantic
upload_time2023-12-18 08:31:54
maintainer
docs_urlNone
authorfcfangcc
requires_python>=3.8
licenseGPLv3
keywords pylint pydantic
VCS
bugtrack_url
requirements No requirements were recorded.
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.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": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "",
    "keywords": "pylint,pydantic",
    "author": "fcfangcc",
    "author_email": "swjfc22@163.com",
    "download_url": "",
    "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.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.2",
    "project_urls": {
        "Homepage": "https://github.com/fcfangcc/pylint-pydantic"
    },
    "split_keywords": [
        "pylint",
        "pydantic"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "118034b429c6534be99ef3d6d20bd794b26fda0682d38e2d57f85df258beaac2",
                "md5": "fac4f19da4b2ad370b25ab8bfd3d8a03",
                "sha256": "e5cec02370aa68ac8eff138e5d573b0ac049bab864e9a6c3a9057cf043440aa1"
            },
            "downloads": -1,
            "filename": "pylint_pydantic-0.3.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "fac4f19da4b2ad370b25ab8bfd3d8a03",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 15951,
            "upload_time": "2023-12-18T08:31:54",
            "upload_time_iso_8601": "2023-12-18T08:31:54.946378Z",
            "url": "https://files.pythonhosted.org/packages/11/80/34b429c6534be99ef3d6d20bd794b26fda0682d38e2d57f85df258beaac2/pylint_pydantic-0.3.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-12-18 08:31:54",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "fcfangcc",
    "github_project": "pylint-pydantic",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "pylint-pydantic"
}
        
Elapsed time: 0.16336s