Skip to content

bdscharf/flake8_loopy

Repository files navigation

flake8_loopy

PyPI Code style: black Checked with mypy GitHub Build Status codecov

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.

About

a flake8 plugin for basic code quality checks in loops

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages