Skip to content

Commit

Permalink
lintify_forge_yaml returns lists of str
Browse files Browse the repository at this point in the history
  • Loading branch information
ytausch committed Jul 10, 2024
1 parent d6307ea commit 294ce7e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions conda_smithy/lint_recipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def _find_extra_fields(model: BaseModel, prefix=""):
return hints


def lintify_forge_yaml(recipe_dir=None) -> (list, list):
def lintify_forge_yaml(recipe_dir=None) -> (List[str], List[str]):
if recipe_dir:
forge_yaml_filename = (
glob(os.path.join(recipe_dir, "..", "conda-forge.yml"))
Expand Down Expand Up @@ -1420,8 +1420,8 @@ def main(recipe_dir, conda_forge=False, return_hints=False):
recipe_dir=recipe_dir
)

results.extend([_format_validation_msg(err) for err in validation_errors])
hints.extend([_format_validation_msg(hint) for hint in validation_hints])
results.extend(validation_errors)
hints.extend(validation_hints)

if return_hints:
return results, hints
Expand Down

0 comments on commit 294ce7e

Please sign in to comment.