introduce flake8-comprehensions

This commit is contained in:
Willi Ballenthin
2023-07-06 20:04:27 +02:00
parent ff47270681
commit 13a8e252f0
22 changed files with 64 additions and 66 deletions

View File

@@ -825,7 +825,7 @@ def lint_rule(ctx: Context, rule: Rule):
print("")
if is_nursery_rule(rule):
has_examples = not any(map(lambda v: v.level == Lint.FAIL and v.name == "missing examples", violations))
has_examples = not any(v.level == Lint.FAIL and v.name == "missing examples" for v in violations)
lints_failed = len(
tuple(
filter(