flake8-complicated-walrus


Nameflake8-complicated-walrus JSON
Version 2.1.0 PyPI version JSON
download
home_pagehttps://github.com/DDmitiy/flake8-complicated-walrus
SummaryThis Flake8 plugin for checking complicated assignment expressions.
upload_time2023-07-19 13:23:41
maintainer
docs_urlNone
authorDudov Dmitry
requires_python>=3.9,<4.0
licenseMIT
keywords flake8-complicated-walrus flake8 plugin walrus assignment expression if conditions
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # flake8-complicated-walrus

This *Flake8* plugin for checking complicated assignment expressions.
There are 3 levels for this linter:
1. *restrict-all* - **restrict** use assignment expressions **in any case**
2. *restrict-complicated* - **restrict** use assignment expressions **in complex if conditions**
3. *allow-all* - **allow** use assignment expressions **in any case**

# Quick Start Guide

1. Install ``flake8-complicated-walrus`` from PyPI with pip::

        pip install flake8-complicated-walrus

2. Configure a mark that you would like to validate::

        cd project_root/
        vi setup.cfg

3. Add to file following: 
   
        [flake8]  
        restrict-walrus-level = restrict-complicated  

3. Run flake8::

        flake8 .

# flake8 codes

   * FCW100: You cannot use assignment expression.
   * FCW200: You cannot use assignment expression in complicated if statements.

# Settings

**restrict-walrus-level**  
It specifies restrict level for linting your code. 

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/DDmitiy/flake8-complicated-walrus",
    "name": "flake8-complicated-walrus",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.9,<4.0",
    "maintainer_email": "",
    "keywords": "flake8-complicated-walrus,flake8,plugin,walrus,assignment expression,if,conditions",
    "author": "Dudov Dmitry",
    "author_email": "dudov.dm@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/c2/fd/3b87a5ba0876b136e375c68cfa4fc4bd2e5ec28459784acca25a52085d97/flake8_complicated_walrus-2.1.0.tar.gz",
    "platform": null,
    "description": "# flake8-complicated-walrus\n\nThis *Flake8* plugin for checking complicated assignment expressions.\nThere are 3 levels for this linter:\n1. *restrict-all* - **restrict** use assignment expressions **in any case**\n2. *restrict-complicated* - **restrict** use assignment expressions **in complex if conditions**\n3. *allow-all* - **allow** use assignment expressions **in any case**\n\n# Quick Start Guide\n\n1. Install ``flake8-complicated-walrus`` from PyPI with pip::\n\n        pip install flake8-complicated-walrus\n\n2. Configure a mark that you would like to validate::\n\n        cd project_root/\n        vi setup.cfg\n\n3. Add to file following: \n   \n        [flake8]  \n        restrict-walrus-level = restrict-complicated  \n\n3. Run flake8::\n\n        flake8 .\n\n# flake8 codes\n\n   * FCW100: You cannot use assignment expression.\n   * FCW200: You cannot use assignment expression in complicated if statements.\n\n# Settings\n\n**restrict-walrus-level**  \nIt specifies restrict level for linting your code. \n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "This Flake8 plugin for checking complicated assignment expressions.",
    "version": "2.1.0",
    "project_urls": {
        "Homepage": "https://github.com/DDmitiy/flake8-complicated-walrus",
        "Repository": "https://github.com/DDmitiy/flake8-complicated-walrus"
    },
    "split_keywords": [
        "flake8-complicated-walrus",
        "flake8",
        "plugin",
        "walrus",
        "assignment expression",
        "if",
        "conditions"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6acf20e0549d1135c03730b92e007349d51a4f83863e15cd4af35ff2b0fa956a",
                "md5": "99291edd6329cb89278bae933f7ab35d",
                "sha256": "c4e18d1915740d03abea324781c3b3b338245d39e0948f944e45fb36a4155786"
            },
            "downloads": -1,
            "filename": "flake8_complicated_walrus-2.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "99291edd6329cb89278bae933f7ab35d",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9,<4.0",
            "size": 4037,
            "upload_time": "2023-07-19T13:23:39",
            "upload_time_iso_8601": "2023-07-19T13:23:39.713891Z",
            "url": "https://files.pythonhosted.org/packages/6a/cf/20e0549d1135c03730b92e007349d51a4f83863e15cd4af35ff2b0fa956a/flake8_complicated_walrus-2.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c2fd3b87a5ba0876b136e375c68cfa4fc4bd2e5ec28459784acca25a52085d97",
                "md5": "d86217bb757142b21bf2b0d9d76e117c",
                "sha256": "7b039d020186cbbfbab9a71e6d58621d63d85412300903504d51b6a7b19b461b"
            },
            "downloads": -1,
            "filename": "flake8_complicated_walrus-2.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "d86217bb757142b21bf2b0d9d76e117c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9,<4.0",
            "size": 3634,
            "upload_time": "2023-07-19T13:23:41",
            "upload_time_iso_8601": "2023-07-19T13:23:41.348793Z",
            "url": "https://files.pythonhosted.org/packages/c2/fd/3b87a5ba0876b136e375c68cfa4fc4bd2e5ec28459784acca25a52085d97/flake8_complicated_walrus-2.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-07-19 13:23:41",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "DDmitiy",
    "github_project": "flake8-complicated-walrus",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "flake8-complicated-walrus"
}
        
Elapsed time: 0.08796s