From a9569c47fb4aec063c9f929d4152813282ea1895 Mon Sep 17 00:00:00 2001 From: Alex Lowe Date: Tue, 9 Sep 2025 12:03:04 -0400 Subject: [PATCH] test: simpler checker no-op for grammar Signed-off-by: Alex Lowe --- craft_application/grammar.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/craft_application/grammar.py b/craft_application/grammar.py index 1c6d24777..da33561a1 100644 --- a/craft_application/grammar.py +++ b/craft_application/grammar.py @@ -123,18 +123,11 @@ def process_parts( :returns: The processed parts data. """ - - def self_check(value: Any) -> bool: # noqa: ANN401 - return bool( - value == value # pylint: disable=comparison-with-itself # noqa: PLR0124 - ) - - # TODO: make checker optional in craft-grammar. # noqa: FIX002 processor = GrammarProcessor( arch=arch, target_arch=target_arch, platforms=platform_ids, - checker=self_check, + checker=lambda _: True, ) for part_name, part_data in parts_yaml_data.items():