From 250a4618c8732a4af904f87c7cd21f4166c732fc Mon Sep 17 00:00:00 2001 From: reid_liu Date: Tue, 22 Oct 2024 23:53:22 -0700 Subject: [PATCH] add a warning for yammllint Signed-off-by: reid_liu --- src/instructlab/schema/taxonomy.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/instructlab/schema/taxonomy.py b/src/instructlab/schema/taxonomy.py index a3e9e14..cc00724 100644 --- a/src/instructlab/schema/taxonomy.py +++ b/src/instructlab/schema/taxonomy.py @@ -264,6 +264,8 @@ def _yamllint(self, text: str, taxonomy: Taxonomy) -> None: stdout=subprocess.PIPE, stderr=subprocess.STDOUT, ) + if "invalid config" in result.stdout: + logger.warning(f"Invalid custom rules: {result.stdout}") except FileNotFoundError: logger.warning( "could not run yamllint command",