flake8 plugin to check code quality in loops
Project description
flake8_loopy
basic code quality checks in loops
pip install flake8_loopy
checks
| error code | description |
|---|---|
| LPY100 | unused variable created by enumerate(): you probably do not need enumerate(), or you should use range(len()) instead |
| LPY101 | variable created by for loop shadows a variable in its outer context |
future
- iteration with index where index is only used to get an item (should iterate directly over items)
notes
please report false positives / errors if found! contributions welcome.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
flake8_loopy-1.1.0.tar.gz
(4.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file flake8_loopy-1.1.0.tar.gz.
File metadata
- Download URL: flake8_loopy-1.1.0.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5ffd2dccf0deff13f9465c56ea0d3a519df8c364d6db656c3705836a17e03cce
|
|
| MD5 |
ef118f79bc5d681cda66b5ef4ac911b5
|
|
| BLAKE2b-256 |
2110c27d8c094a8815ddaad917735fead5f7cfd5cc898b8f37c29c6ad265076e
|
File details
Details for the file flake8_loopy-1.1.0-py3-none-any.whl.
File metadata
- Download URL: flake8_loopy-1.1.0-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa0f4348ef59a5aa794c52b8fe3440add9884d9a8fd00e6fe5f52c3a2d1220b7
|
|
| MD5 |
751e8c9189d7343b6f8b48956ca79d3e
|
|
| BLAKE2b-256 |
1ce7a13e83c7fcdbc9bcfdee158856346216661d96e3d04102b14bb29996a5ac
|