The plugin checks `if expressions` (ternary operator)
Project description
flake8-if-expr
The plugin forbids if expressions
(ternary operator).
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
1.0.0 - 2019.05.23
- update flake8-plugin-utils version to v1.0
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-1.0.2.tar.gz
(3.0 kB
view hashes)
Built Distribution
Close
Hashes for flake8_if_expr-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d705a110f2ea247a6dffc4c6d1dadcbf8ca6175114aab0b1df1745a7e3b8d05d |
|
MD5 | d1ecee11e1a1db6fcb45f3871027e87c |
|
BLAKE2b-256 | 010cf6cd77eaac084525441a8cc29098fce0e2eb66192c1e36892e932c57411b |