Skip to main content

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.

Metadata

Release files for flake8-complicated-walrus 2.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for flake8-complicated-walrus 2.1.0
File Size Uploaded
flake8_complicated_walrus-2.1.0.tar.gz 3.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for flake8-complicated-walrus 2.1.0
File Interpreter ABI Platform
flake8_complicated_walrus-2.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 7.7 kB

Release files / flake8_complicated_walrus-2.1.0.tar.gz

Download URL flake8_complicated_walrus-2.1.0.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
7b039d020186cbbfbab9a71e6d58621d63d85412300903504d51b6a7b19b461b
BLAKE2b-256 checksum
How to use checksums
c2fd3b87a5ba0876b136e375c68cfa4fc4bd2e5ec28459784acca25a52085d97
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.1 CPython/3.9.5 Darwin/22.3.0

Release files / flake8_complicated_walrus-2.1.0-py3-none-any.whl

Download URL flake8_complicated_walrus-2.1.0-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c4e18d1915740d03abea324781c3b3b338245d39e0948f944e45fb36a4155786
BLAKE2b-256 checksum
How to use checksums
6acf20e0549d1135c03730b92e007349d51a4f83863e15cd4af35ff2b0fa956a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.1 CPython/3.9.5 Darwin/22.3.0

Release history Release notifications | RSS feed

This release

2.1.0 This release

2 release files

2.0.0

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page