Skip to content

Commit 8b58149

Browse files
AAriamRepoDynamicsBot
authored andcommitted
refactor(auto): Apply automatic formatting and refactoring.
[skip ci]
1 parent c2fb94b commit 8b58149

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

  • .manager/src/pypackit/script/build

.manager/src/pypackit/script/build/conda.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ def run(
5454
-------
5555
Path to the local conda channel.
5656
"""
57+
5758
def get_recipe(pkg_id: str) -> dict:
5859
"""Get the conda recipe of a package."""
5960
key = f"pypkg_{pkg_id}"
@@ -84,7 +85,9 @@ def update_channel_priority(requirement: str) -> None:
8485
meta = recipe.get("meta", {}).get("values", {})
8586
channel_priority: dict[str, int] = {}
8687
for key in ("host", "run", "run_constrained"):
87-
for req in meta.get("requirements", {}).get("values", {}).get(key, {}).get("values", []):
88+
for req in (
89+
meta.get("requirements", {}).get("values", {}).get(key, {}).get("values", [])
90+
):
8891
update_channel_priority(req["value"])
8992
for req in meta.get("test", {}).get("values", {}).get("requires", {}).get("values", []):
9093
update_channel_priority(req["value"])

0 commit comments

Comments
 (0)