Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jul 22, 2024
1 parent fede4ee commit dc53f07
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 18 deletions.
5 changes: 1 addition & 4 deletions pyodide_build/cli/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,7 @@
# "pyodide_sysconfig_" prefix to differentiate them
# from other configuration variables
PYODIDE_CONFIGS.update(
{
f"pyodide_sysconfig_{k}": v
for k, v in sysconfig.get_paths().items()
}
{f"pyodide_sysconfig_{k}": v for k, v in sysconfig.get_paths().items()}
)


Expand Down
19 changes: 5 additions & 14 deletions pyodide_build/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,7 @@ def _load_sysconfig_paths(self) -> Mapping[str, str]:
# Load the values of sysconfig.get_paths() with a
# "pyodide_sysconfig_" prefix to differentiate them
# from other configuration variables
return {
f"pyodide_sysconfig_{k}": v
for k, v in sysconfig.get_paths().items()
}
return {f"pyodide_sysconfig_{k}": v for k, v in sysconfig.get_paths().items()}

def _load_default_config(self) -> Mapping[str, str]:
return {
Expand Down Expand Up @@ -185,11 +182,8 @@ def to_env(self) -> dict[str, str]:
}

BUILD_KEY_TO_VAR.update(
{
f"pyodide_sysconfig_{k}": v
for k, v in sysconfig.get_paths().items()
}
)
{f"pyodide_sysconfig_{k}": v for k, v in sysconfig.get_paths().items()}
)

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

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

DEFAULT_CONFIG.update(
{
f"pyodide_sysconfig_{k}": v
for k, v in sysconfig.get_paths().items()
}
)
{f"pyodide_sysconfig_{k}": v for k, v in sysconfig.get_paths().items()}
)

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

0 comments on commit dc53f07

Please sign in to comment.