Skip to content

Commit a2d053f

Browse files
authored
feat: enable v1 linting (#14)
1 parent 2b2eefe commit a2d053f

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

conda_forge_feedstock_ops/lint.py

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

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-
)
105+
_lints, _hints = conda_smithy.lint_recipe.main(
106+
str(recipe_dir), conda_forge=True, return_hints=True
107+
)
113108

114109
lints[rel_path] = _lints
115110
hints[rel_path] = _hints

tests/test_rerender.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,10 @@ def test_rerender_containerized_same_as_local(use_containers, capfd):
183183
local_captured = capfd.readouterr()
184184
print(f"out: {local_captured.out}\nerr: {local_captured.err}")
185185

186-
assert msg == local_msg
186+
assert (
187+
msg.split("conda-forge-pinning")[1]
188+
== local_msg.split("conda-forge-pinning")[1]
189+
)
187190

188191
# now compare files
189192
cont_fnames = set(

0 commit comments

Comments
 (0)