Skip to content

Commit

Permalink
Consider tests[].python.python_version when linting for cfep25 on v1
Browse files Browse the repository at this point in the history
  • Loading branch information
hadim committed Jan 7, 2025
1 parent 4af390e commit e05075b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions conda_smithy/lint_recipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,9 @@ def run_conda_forge_specific(
test_reqs += (test_element.get("requirements") or {}).get(
"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']}")
else:
test_section = get_section(meta, "test", lints, recipe_version)
test_reqs = test_section.get("requires") or []
Expand Down

0 comments on commit e05075b

Please sign in to comment.