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 hashes)
Built Distribution
Close
Hashes for flake8_loopy-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa0f4348ef59a5aa794c52b8fe3440add9884d9a8fd00e6fe5f52c3a2d1220b7 |
|
MD5 | 751e8c9189d7343b6f8b48956ca79d3e |
|
BLAKE2b-256 | 1ce7a13e83c7fcdbc9bcfdee158856346216661d96e3d04102b14bb29996a5ac |