No project description provided
Project description
flake8-if-expr
Check for if expression (ternary operator).
This module provides a plugin for flake8, the Python code checker.
Installation
pip install flake8-if-expr
Example
# code.py
x = 1 if 2 else 3
$ flake8 code.py
./code.py:1:5: K100 don`t use "[on_true] if [expression] else [on_false]" syntax
x = 1 if 2 else 3
^
License
MIT
Change Log
0.1.0 - 2019.02.07
- First release
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
flake8-if-expr-0.1.0.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for flake8_if_expr-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 167c09024c89b97b683cedc895a004f8bf7c0f651aeb255b4a93f4d07fb5b36b |
|
MD5 | c49709245ec3a085e80ee3edfb072e93 |
|
BLAKE2b-256 | 275d05fae24eec02127b112af40827e359622d2f6c687a27088459921df84675 |