Skip to content

Commit

Permalink
Merge pull request #1381 from synapticarbors/lint-no-delete-examples
Browse files Browse the repository at this point in the history
Add lint for deleting staged_recipes example meta.yaml
  • Loading branch information
isuruf authored Aug 11, 2020
2 parents 360da93 + 7443289 commit 5b46fbe
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions conda_smithy/lint_recipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -742,6 +742,13 @@ def run_conda_forge_specific(meta, recipe_dir, lints, hints):
"into its own dir."
)

# 4: Do not delete example recipe
if is_staged_recipes and not os.path.exists("recipes/example/meta.yaml"):
lints.append(
"Please do not delete the example recipe found in "
"(recipes/example/meta.yaml)"
)


def is_selector_line(line):
# Using the same pattern defined in conda-build (metadata.py),
Expand Down

0 comments on commit 5b46fbe

Please sign in to comment.