Skip to content

Commit

Permalink
Make list-metrics output stable by using a tuple instead of a set to …
Browse files Browse the repository at this point in the history
…build ALL_OPERATORS.
  • Loading branch information
devdanzin committed Jul 5, 2023
1 parent 8cef174 commit e72c81a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/wily/operators/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
)
}


Expand Down

0 comments on commit e72c81a

Please sign in to comment.