Skip to content

Commit

Permalink
Merge pull request #2038 from conda-forge/beckermr-patch-1
Browse files Browse the repository at this point in the history
fix: remove lint for changes to staged-recipes example
  • Loading branch information
xhochy committed Aug 22, 2024
2 parents d998b60 + d655de2 commit 2dc51df
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
15 changes: 1 addition & 14 deletions conda_smithy/lint_recipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,20 +494,7 @@ def run_conda_forge_specific(
)

# 4: Do not delete example recipe
if is_staged_recipes and recipe_dir is not None:
for recipe_name in ("meta.yaml", "recipe.yaml"):
example_fname = os.path.abspath(
os.path.join(recipe_dir, "..", "example", recipe_name)
)

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)
# removed in favor of direct check in staged-recipes CI

# 5: Package-specific hints
# (e.g. do not depend on matplotlib, only matplotlib-base)
Expand Down
3 changes: 3 additions & 0 deletions news/2038-sr-example.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
**Removed:**

* Removed lint for editing example recipes in staged-recipes since covered by CI already. (#2038)

0 comments on commit 2dc51df

Please sign in to comment.