pallets / jinja

A very fast and expressive template engine.

Home Page:https://jinja.palletsprojects.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Flake error B031 caused by new release flake8-bugbear

szabgab opened this issue · comments

Using flake8-bugbear-23.1.20 the pre-commit hook passed. Once flake8-bugbear-23.2.13 was released the flake8 step of the pre-commit hook started to fail with

scripts/generate_identifier_pattern.py:33:18: B031 Using the generator returned from `itertools.groupby()` more than once will do nothing on the second usage. Save the result to a list, if the result is needed multiple times.

Fixed in the 3.1.x branch, I just need to merge it forward. be0bcb6