From 8ed991a7481cf2bd1a9ad84ffe3a8c55dd568b89 Mon Sep 17 00:00:00 2001 From: BJ Hargrave Date: Tue, 14 May 2024 13:59:58 -0400 Subject: [PATCH] check_yaml: Always run schema validation (#1079) We no longer skip schema validation if linting reports an error. Signed-off-by: BJ Hargrave --- .github/scripts/check-yaml.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/scripts/check-yaml.py b/.github/scripts/check-yaml.py index 75ab86822..019ff1e14 100755 --- a/.github/scripts/check-yaml.py +++ b/.github/scripts/check-yaml.py @@ -127,7 +127,6 @@ def check(self) -> int: with open(full_path, "r", encoding="utf-8") as stream: content = stream.read() - lint_error = False for lint_problem in linter.run( input=content, conf=self.yamllint_config ): @@ -144,7 +143,6 @@ def check(self) -> int: line=lint_problem.line, col=lint_problem.column, ) - lint_error = True case _: self.warning( file=taxonomy_path, @@ -152,8 +150,6 @@ def check(self) -> int: line=lint_problem.line, col=lint_problem.column, ) - if lint_error: - continue parsed = yaml.safe_load(content) if not parsed: