Check for if expression (ternary operator)
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: KEK100 don`t use "[on_true] if [expression] else [on_false]" syntax
x = 1 if 2 else 3
^
License
MIT
Change Log
0.2.1 - 2019.02.26
- update flake8-plugin-utils version
0.2.0 - 2019.02.09
- Rewriting with flake8-plugin-utils
0.1.1 - 2019.02.08
- Remove pycodestyle from dependencies
- KEK101 error code #2
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.2.1.tar.gz
(2.9 kB
view hashes)
Built Distribution
Close
Hashes for flake8_if_expr-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e29d7399d77d55df48046b5ef98498dfec1c31444363c2adf14144244b00fb7 |
|
MD5 | 57968738d17dc79330899a63ae659425 |
|
BLAKE2b-256 | 35d40ce75df01a1c6dabeca55cffa15c450886c628d3801b785a178064d55906 |