summaryrefslogtreecommitdiff
path: root/tests/functional/c/consider/consider_using_enumerate.py
Commit message (Collapse)AuthorAgeFilesLines
* [PyCQA migration] Upgrade links to the repositories in code and doc (#8514)Pierre Sassoulas2023-03-291-1/+1
|
* Remove Python 2 code from the tests & refactor (#7320)Mark Byrne2022-08-181-4/+4
| | | | | | | - Refactor Classes which inherit from `object`. - Remove `import print_function from __future__`. - Remove assignments to `__revision__` from the functional test module when it is never used throughout the module. Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* New checker `unnecessary-list-index-lookup` (#4525) (#5834)Tim Martin2022-03-251-1/+1
|
* Fix bugs in W0640 cell-var-from-loop checker (#4827)David Liu2021-08-121-1/+1
| | | | | | | | | | | | | | * Fix bugs in W0640 cell-var-from-loop checker. 1. Handle cell var appearing in node inside function. 2. Handle cell var appearing in non-trivial default argument expression. 3. Use astroid's lookup method to account for variable shadowing. * Fix cell-var-from-loop dependency on other checks. Previously, this check would have many false negatives when both unused-variable and used-before-assignment were disabled. Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Fixed false negative of consider-using-enumerate on attributes (#4508)yushao22021-05-261-0/+12
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Create subdirectory for crowded functional testsPierre Sassoulas2021-03-071-0/+73