diff --git a/src/rattler_build_conda_compat/lint.py b/src/rattler_build_conda_compat/lint.py index 5045043..2a88107 100644 --- a/src/rattler_build_conda_compat/lint.py +++ b/src/rattler_build_conda_compat/lint.py @@ -8,7 +8,7 @@ from typing import Any, Mapping, Sequence import requests from conda.models.version import VersionOrder -from functools import cache +from functools import lru_cache from jsonschema import Draft202012Validator from jsonschema import ValidationError from textwrap import indent @@ -26,15 +26,17 @@ def _format_validation_msg(error: ValidationError): + import pdb + + pdb.set_trace() return cleandoc( f""" - In recipe.yaml: `{error.instance}`. -{indent(error.message, " " * 12 + "> ")} + In recipe.yaml: \n{indent(error.message, " " * 12 + "> ")} """ ) -@cache +@lru_cache def get_recipe_schema() -> dict[Any, Any]: return requests.get(SCHEMA_URL).json()