Skip to main content

flake8 plugin which forbids assignment expressions (the walrus operator)

Project description

Build Status Azure DevOps coverage

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://gitlab.com/pycqa/flake8
    rev: 3.7.8
    hooks:
    -   id: flake8
        additional_dependencies: [flake8-walrus==1.1.0]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flake8_walrus-1.1.0.tar.gz (2.7 kB view hashes)

Uploaded source

Built Distribution

flake8_walrus-1.1.0-py2.py3-none-any.whl (3.2 kB view hashes)

Uploaded py2 py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page