Skip to main content

flake8-if-expr

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

Description

The plugin forbids if expressions (ternary operator).

Installation

pip install flake8-if-expr

Examples

# 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
    ^

Metadata

Release files for flake8-if-expr 1.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for flake8-if-expr 1.0.4
File Size Uploaded
flake8-if-expr-1.0.4.tar.gz 2.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for flake8-if-expr 1.0.4
File Interpreter ABI Platform
flake8_if_expr-1.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 5.8 kB

Release files / flake8-if-expr-1.0.4.tar.gz

Download URL flake8-if-expr-1.0.4.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
e0050b59b46114b6e20628d61175a7a608d3eb55fb5b90d87db0f9352a91a491
BLAKE2b-256 checksum
How to use checksums
dae3d0af86ace09eeb976dd0635e2663495468302b9ac7488bc266a74a27314e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.9 CPython/3.8.3 Linux/5.3.0-1028-azure

Release files / flake8_if_expr-1.0.4-py3-none-any.whl

Download URL flake8_if_expr-1.0.4-py3-none-any.whl
Size 3.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3f2d45cc1e48b4cdf22377ca1624b2a59b6f1c7825ba1cdee99ff1e647e7ae3f
BLAKE2b-256 checksum
How to use checksums
2181c2e5ac8c7cd988d79f1a4b32b9ec8292c906687853fcbe499f7b58142cb0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.9 CPython/3.8.3 Linux/5.3.0-1028-azure

Release history Release notifications | RSS feed

This release

1.0.4 This release

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page