From e72c81ad4180669f14648c87f5b6849932b2f946 Mon Sep 17 00:00:00 2001 From: devdanzin <74280297+devdanzin@users.noreply.github.com> Date: Tue, 4 Jul 2023 22:57:01 -0300 Subject: [PATCH] Make list-metrics output stable by using a tuple instead of a set to build ALL_OPERATORS. --- src/wily/operators/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wily/operators/__init__.py b/src/wily/operators/__init__.py index a4074a0e..3b052369 100644 --- a/src/wily/operators/__init__.py +++ b/src/wily/operators/__init__.py @@ -112,12 +112,12 @@ def run(self, module: str, options: Dict[str, Any]) -> Dict[Any, Any]: """Dictionary of all operators""" ALL_OPERATORS = { operator.name: operator - for operator in { + for operator in ( OPERATOR_CYCLOMATIC, OPERATOR_MAINTAINABILITY, OPERATOR_RAW, OPERATOR_HALSTEAD, - } + ) }