Skip to content

Commit dc53f07

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent fede4ee commit dc53f07

File tree

2 files changed

+6
-18
lines changed

2 files changed

+6
-18
lines changed

pyodide_build/cli/config.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,7 @@
2525
# "pyodide_sysconfig_" prefix to differentiate them
2626
# from other configuration variables
2727
PYODIDE_CONFIGS.update(
28-
{
29-
f"pyodide_sysconfig_{k}": v
30-
for k, v in sysconfig.get_paths().items()
31-
}
28+
{f"pyodide_sysconfig_{k}": v for k, v in sysconfig.get_paths().items()}
3229
)
3330

3431

pyodide_build/config.py

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,7 @@ def _load_sysconfig_paths(self) -> Mapping[str, str]:
3737
# Load the values of sysconfig.get_paths() with a
3838
# "pyodide_sysconfig_" prefix to differentiate them
3939
# from other configuration variables
40-
return {
41-
f"pyodide_sysconfig_{k}": v
42-
for k, v in sysconfig.get_paths().items()
43-
}
40+
return {f"pyodide_sysconfig_{k}": v for k, v in sysconfig.get_paths().items()}
4441

4542
def _load_default_config(self) -> Mapping[str, str]:
4643
return {
@@ -185,11 +182,8 @@ def to_env(self) -> dict[str, str]:
185182
}
186183

187184
BUILD_KEY_TO_VAR.update(
188-
{
189-
f"pyodide_sysconfig_{k}": v
190-
for k, v in sysconfig.get_paths().items()
191-
}
192-
)
185+
{f"pyodide_sysconfig_{k}": v for k, v in sysconfig.get_paths().items()}
186+
)
193187

194188
BUILD_VAR_TO_KEY = {v: k for k, v in BUILD_KEY_TO_VAR.items()}
195189

@@ -224,11 +218,8 @@ def to_env(self) -> dict[str, str]:
224218
}
225219

226220
DEFAULT_CONFIG.update(
227-
{
228-
f"pyodide_sysconfig_{k}": v
229-
for k, v in sysconfig.get_paths().items()
230-
}
231-
)
221+
{f"pyodide_sysconfig_{k}": v for k, v in sysconfig.get_paths().items()}
222+
)
232223

233224
# Default configs that are computed from other values (often from Makefile.envs)
234225
# TODO: Remove dependency on Makefile.envs

0 commit comments

Comments
 (0)