Skip to content

Commit 2b2eefe

Browse files
authored
fix: do not lint v1 (#13)
1 parent eaa4cf5 commit 2b2eefe

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

conda_forge_feedstock_ops/lint.py

+8-3
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,14 @@ def _lint_local(feedstock_dir):
102102
recipe_dir = recipe.parent
103103
rel_path = str(recipe.relative_to(feedstock_dir))
104104

105-
_lints, _hints = conda_smithy.lint_recipe.main(
106-
str(recipe_dir), conda_forge=True, return_hints=True
107-
)
105+
if recipe.name == "recipe.yaml":
106+
# this is a v1 recipe and not yet handled
107+
_hints = ["This is a v1 recipe and not yet lintable. We are working on it!"]
108+
_lints = []
109+
else:
110+
_lints, _hints = conda_smithy.lint_recipe.main(
111+
str(recipe_dir), conda_forge=True, return_hints=True
112+
)
108113

109114
lints[rel_path] = _lints
110115
hints[rel_path] = _hints

0 commit comments

Comments
 (0)