Skip to content

Commit 913f474

Browse files
authored
Add unnecessary-lambda check (#3892)
1 parent 354cda0 commit 913f474

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ disable = [
107107
"too-many-public-methods",
108108
"unidiomatic-typecheck",
109109
"unnecessary-comprehension",
110-
"unnecessary-lambda",
111110
# Next rule was added because we cannot adjust the open calls during minor
112111
# releases since there is no guarantee that this will not break existing
113112
# scenarios (right now, we have no idea what encoding files that molecule

src/molecule/test/unit/conftest.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
# DEALINGS IN THE SOFTWARE.
2020

2121
import copy
22-
import functools
2322
import os
2423
import shutil
2524
from collections.abc import Generator
@@ -109,7 +108,11 @@ def molecule_data(
109108
_molecule_verifier_section_data,
110109
]
111110

112-
return functools.reduce(lambda x, y: util.merge_dicts(x, y), fixtures)
111+
merged_dict = {}
112+
for fixture in fixtures:
113+
merged_dict.update(fixture)
114+
115+
return merged_dict
113116

114117

115118
@pytest.fixture()

0 commit comments

Comments
 (0)