Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the python_min linter check robust against if-else syntax #2154

Merged
merged 3 commits into from
Nov 26, 2024

Conversation

rgommers
Copy link
Contributor

In noarch: python recipes, the thing being checked here should always have python as a string and not in an if: block, so it should be safe to skip the check. Fixes the linter failing on rattler-build recipes with conditional requirements.

Closes gh-2153

In `noarch: python` recipes, the thing being checked here should
always have `python` as a string and not in an `if:` block, so it
should be safe to skip the check. Fixes the linter failing
on rattler-build recipes with conditional requirements.
@rgommers rgommers requested a review from a team as a code owner November 21, 2024 11:30
Copy link
Member

@beckermr beckermr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs a news item and a test.

@beckermr beckermr merged commit f8edc69 into conda-forge:main Nov 26, 2024
2 checks passed
@rgommers rgommers deleted the fix-rattler-ifthen-linting branch November 27, 2024 08:58
@rgommers
Copy link
Contributor Author

Thanks for fixing that @beckermr! And sorry for the slow follow-up, I had little time for the past week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

linter fails on rattler-build recipe
2 participants