A flake8 extension that checks for tuple unpack length
Project description
flake8-tuple-unpack-limit
An extension for flake8 to report on too long tuple unpacking.
Default max unpack length is 4 and can be configured
via --max-unpack-length
option.
Installation
pip install flake8-tuple-unpack-length
Example
Sample file:
# test.py
def foo():
return (1, 2, 3, 4, 5)
a, b, c, d, e = foo()
Usage:
$ flake8 --max-unpack-length 3 test.py
test.py:6:1: TUL001 unpack too many variables (5 > 3)
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
Built Distribution
Close
Hashes for flake8-tuple-unpack-limit-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c9223f7aa3f12578a07f638dbee509e9eba8063150d9936c4114d942d65eea7 |
|
MD5 | 84d9064a519352e5a896c7d8dc3dce98 |
|
BLAKE2b-256 | 75018e041b5ada9095da23be08b731bf5f1ab3d6ffff3a03ca69346e1361eb94 |
Close
Hashes for flake8_tuple_unpack_limit-0.0.1-py3.8.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa01208ee0f42c9f6633b6a80bf27f7368fd5558539457c512c565ad6b025467 |
|
MD5 | 082832c2f64a369bd1317491336e0611 |
|
BLAKE2b-256 | 6ddd55244e923c9163c37551a9282b1c5ce3aeac8b0f24079a139c5a327322f4 |