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 |
todo
-
check for duplicated variable name in inner loop(s)
-
iteration with index where index is only used to get an item (should iterate directly over items)
notes
this plugin is currently mostly untested and should be considered experimental. please report false positives / errors if found!
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.0.2.tar.gz
(4.2 kB
view hashes)
Built Distribution
Close
Hashes for flake8_loopy-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49e245a2e04d83155a87af932b2f6479976faac97188ac82f3d0f79df916003a |
|
MD5 | c426f118e9fe654866610edbdcdf9603 |
|
BLAKE2b-256 | 35c57fb67bb9815b1ad19df60689dab7bd962794465d56ee1337e15ddea2bb0c |