Awesome Open Source
Awesome Open Source

Build Status Azure DevOps coverage pre-commit.ci status

flake8-walrus

flake8 plugin which forbids assignment expressions (the walrus operator)

installation

pip install flake8-walrus

flake8 codes

Code Description
ASN001 do not use assignment expressions

rationale

lol

as a pre-commit hook

See pre-commit for instructions

Sample .pre-commit-config.yaml:

-   repo: https://github.com/pycqa/flake8
    rev: 3.8.1
    hooks:
    -   id: flake8
        additional_dependencies: [flake8-walrus==1.1.0]
Alternatives To Flake8 Walrus
Select To Compare


Alternative Project Comparisons
Related Awesome Lists
Top Programming Languages

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Python (864,795
Plugin (113,427
Asn (628
Flake8 (184