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 for conda forge specific stuff #2022

Merged

Conversation

nichmor
Copy link
Contributor

@nichmor nichmor commented Aug 6, 2024

Checklist

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

@nichmor nichmor requested a review from a team as a code owner August 6, 2024 08:16
conda_smithy/lint_recipe.py Outdated Show resolved Hide resolved
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.

One nit.

news/linting.rst Outdated Show resolved Hide resolved
@beckermr beckermr merged commit 039f4d9 into conda-forge:main Aug 6, 2024
2 checks passed
Comment on lines +477 to +489
for recipe_name in ("meta.yaml", "recipe.yaml"):
example_fname = os.path.abspath(
os.path.join(recipe_dir, "..", "example", recipe_name)
)

if msg not in lints:
lints.append(msg)
if not os.path.exists(example_fname):
msg = (
"Please do not delete the example recipe found in "
f"`recipes/example/{recipe_name}`."
)

if msg not in lints:
lints.append(msg)
Copy link
Member

Choose a reason for hiding this comment

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

This is wrong. There's no example/recipe.yaml to start with.

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.

4 participants