Metadata-Version: 2.1
Name: flake8-complicated-walrus
Version: 1.0.0
Summary: This Flake8 plugin for checking complicated assignment expressions.
Home-page: https://github.com/DDmitiy/flake8-complicated-walrus
License: MIT
Keywords: flake8-complicated-walrus,flake8,plugin,walrus,assignment expression,if,conditions
Author: Dudov Dmitry
Author-email: dudov.dm@gmail.com
Requires-Python: >=3.7,<4.0
Classifier: Framework :: Flake8
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Software Development :: Quality Assurance
Requires-Dist: astpretty (>=2.1.0,<3.0.0)
Requires-Dist: flake8 (>=4,<5)
Project-URL: Repository, https://github.com/DDmitiy/flake8-complicated-walrus
Description-Content-Type: text/markdown

# 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. 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 = complicated  

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

