Skip to content

Commit

Permalink
refactor(KNOWN_SCHEMES): replace set comprehension for list comprehen…
Browse files Browse the repository at this point in the history
…sion

Set is an unordered structure, so every call the order changes.
Because the unordered behavior we can't use `file_regression`
to test the command output.
  • Loading branch information
marcosdotme authored and Lee-W committed May 22, 2024
1 parent 4a9f971 commit 4636e50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commitizen/version_schemes.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ def __str__(self) -> str:
SCHEMES_ENTRYPOINT = "commitizen.scheme"
"""Schemes entrypoints group"""

KNOWN_SCHEMES = {ep.name for ep in metadata.entry_points(group=SCHEMES_ENTRYPOINT)}
KNOWN_SCHEMES = [ep.name for ep in metadata.entry_points(group=SCHEMES_ENTRYPOINT)]
"""All known registered version schemes"""


Expand Down

0 comments on commit 4636e50

Please sign in to comment.