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)
Metadata
Release files for flake8-tuple-unpack-limit 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| flake8-tuple-unpack-limit-0.0.1.tar.gz | 2.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| flake8_tuple_unpack_limit-0.0.1-py3.8.egg | Legacy Egg format | - | - | Details |
Total release size: 6.3 kB
Release files / flake8-tuple-unpack-limit-0.0.1.tar.gz
| Download URL | flake8-tuple-unpack-limit-0.0.1.tar.gz |
|---|---|
| Size | 2.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5c9223f7aa3f12578a07f638dbee509e9eba8063150d9936c4114d942d65eea7
|
|
BLAKE2b-256 checksum How to use checksums |
75018e041b5ada9095da23be08b731bf5f1ab3d6ffff3a03ca69346e1361eb94
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.20.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.1
|
Release files / flake8_tuple_unpack_limit-0.0.1-py3.8.egg
| Download URL | flake8_tuple_unpack_limit-0.0.1-py3.8.egg |
|---|---|
| Size | 3.7 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
fa01208ee0f42c9f6633b6a80bf27f7368fd5558539457c512c565ad6b025467
|
|
BLAKE2b-256 checksum How to use checksums |
6ddd55244e923c9163c37551a9282b1c5ce3aeac8b0f24079a139c5a327322f4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.20.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.1
|