Skip to content

Commit 897568f

Browse files
pre-commit-ci[bot]henryiii
authored andcommitted
style: pre-commit fixes
1 parent 1d92d60 commit 897568f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/scikit_build_core/metadata/__init__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,11 @@ def _process_dynamic_metadata(field: str, action: Callable[[str], str], result:
8080
return {k: action(v) for k, v in result.items()} # type: ignore[return-value]
8181
if field == "entry-points":
8282
if not isinstance(result, dict) or not all(
83-
isinstance(d, dict) and all(isinstance(k, str) and isinstance(v, str) for k, v in d.items()) for d in result.values()
83+
isinstance(d, dict)
84+
and all(isinstance(k, str) and isinstance(v, str) for k, v in d.items())
85+
for d in result.values()
8486
):
85-
msg = f"Field 'entry-points' must be a dictionary of dictionary of strings"
87+
msg = "Field 'entry-points' must be a dictionary of dictionary of strings"
8688
raise RuntimeError(msg)
8789
if field == "optional-dependencies":
8890
if not isinstance(result, dict) or not all(

0 commit comments

Comments
 (0)