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 Jan 7, 2025
1 parent e4cd7b2 commit 20d70b2
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions conda_smithy/lint_recipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -524,8 +524,13 @@ def run_conda_forge_specific(
"run"
) or []

if "python" in test_element and test_element["python"].get("python_version") is not None:
test_reqs.append(f"python {test_element["python"]['python_version']}")
if (
"python" in test_element
and test_element["python"].get("python_version") is not None
):
test_reqs.append(
f"python {test_element["python"]['python_version']}"
)
else:
test_section = get_section(meta, "test", lints, recipe_version)
test_reqs = test_section.get("requires") or []
Expand Down

0 comments on commit 20d70b2

Please sign in to comment.