Skip to main content

This Flake8 plugin for checking complicated assignment expressions.

Project description

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  
    
  4. 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.

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-complicated-walrus-2.0.0.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file flake8-complicated-walrus-2.0.0.tar.gz.

File metadata

File hashes

Hashes for flake8-complicated-walrus-2.0.0.tar.gz
Algorithm Hash digest
SHA256 83954b84a7e5f72e0d40d1aeada3c76a4ef97a9f076bd55a8f810325f914b0ff
MD5 900ef6cdd14eb2f9bee50f9cc6aa92c5
BLAKE2b-256 9d751f4c054a3f0670ed5d7591b54b4f397af1e626d42268ea3cc1c95808aac1

See more details on using hashes here.

File details

Details for the file flake8_complicated_walrus-2.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for flake8_complicated_walrus-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0490d92a5db17e5033a75e9025f846a5a3b7cfe4ac413a530c46337ef9d35adf
MD5 473100fa05f89c95403e9e171a77b05e
BLAKE2b-256 196c22e8d28d1246be91707d8c847103e6bbd70489f1ed2e7fff8c2a2a8d9b8a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page