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.1.tar.gz
(3.0 kB
view details)
Built Distribution
File details
Details for the file flake8-if-expr-1.0.1.tar.gz
.
File metadata
- Download URL: flake8-if-expr-1.0.1.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.9 CPython/3.8.3 Linux/5.3.0-1028-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ddd4f2380e919b1626b1e9d075c53449b54f90dfe20ddf16b385673f7c5be44 |
|
MD5 | 7644f5847a4b675374f5d68f7eac79e1 |
|
BLAKE2b-256 | e627c7ce8165b04883e55696cec9b0f7acefd52740dc88b6189a8cc7240a7b63 |
File details
Details for the file flake8_if_expr-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: flake8_if_expr-1.0.1-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.9 CPython/3.8.3 Linux/5.3.0-1028-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e18cae97f70ccb59c2e51012755d4d247f823eb554d5ca0ad9a55dfc1dbf346 |
|
MD5 | ed66cfc8dd48505f8ccc54a18d60c068 |
|
BLAKE2b-256 | feee640598a48c9d2ea9ea3f62014655ad61c434348f09ae0c8f598afa556c2f |