Skip to main content

The plugin checks `if expressions` (ternary operator)

Project description


pypi Python: 3.6+ Downloads CI Status Code coverage License: MIT Code style: black


The plugin forbids if expressions (ternary operator).


pip install flake8-if-expr


x = 1 if 2 else 3
$ flake8
./ KEK100 don`t use "[on_true] if [expression] else [on_false]" syntax
x = 1 if 2 else 3

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for flake8-if-expr, version 1.0.4
Filename, size File type Python version Upload date Hashes
Filename, size flake8_if_expr-1.0.4-py3-none-any.whl (3.0 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size flake8-if-expr-1.0.4.tar.gz (2.8 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page