Skip to content
This repository has been archived by the owner on Feb 4, 2024. It is now read-only.

flake8 plugin which forbids assignment expressions (the walrus operator)

License

Notifications You must be signed in to change notification settings

asottile-archive/flake8-walrus

Repository files navigation

ARCHIVED

it is feature complete and I don't plan on updating it further


build status 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]

About

flake8 plugin which forbids assignment expressions (the walrus operator)

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages