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

feat: add lint+hint for recipe parsing #2141

Merged
merged 8 commits into from
Nov 19, 2024
Merged

feat: add lint+hint for recipe parsing #2141

merged 8 commits into from
Nov 19, 2024

Conversation

beckermr
Copy link
Member

@beckermr beckermr commented Nov 19, 2024

Checklist

  • Added a news entry
  • Regenerated schema JSON if schema altered (python conda_smithy/schema.py)

This PR is a good step for moving towards v1 recipes. We'll need recipes to be able to be parsed by CRM in order to try automatic conversion. I also included the bot's parser and the one used by grayskull.

closes #2140

@beckermr beckermr marked this pull request as ready for review November 19, 2024 14:33
@beckermr beckermr requested a review from a team as a code owner November 19, 2024 14:33
@beckermr
Copy link
Member Author

@conda-forge/core this one is ready for review!

Comment on lines +1029 to +1032
with tempfile.TemporaryDirectory() as tmpdir:
recipe_file = os.path.join(tmpdir, "meta.yaml")
with open(recipe_file, "w") as f:
f.write(recipe_text)
Copy link
Member

Choose a reason for hiding this comment

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

Souschef modifies the recipe file on parsing? 🤔

Copy link
Member Author

Choose a reason for hiding this comment

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

Likely not but why take the risk?

Copy link
Member

@jaimergp jaimergp left a comment

Choose a reason for hiding this comment

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

Awesome! Only had one small comment but it's non-blocking.

@beckermr beckermr enabled auto-merge November 19, 2024 17:28
@beckermr beckermr merged commit 1b800c2 into main Nov 19, 2024
2 checks passed
@h-vetinari h-vetinari deleted the parse-lint-hint branch November 20, 2024 03:45
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.

lint on recipe parseability
2 participants