Skip to content

Commit

Permalink
gnomechecker: Versions of the format 0.x.y should be considered stable
Browse files Browse the repository at this point in the history
  • Loading branch information
ManuelHu authored and gasinvein committed Mar 18, 2023
1 parent ad907c7 commit ef8568c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/checkers/gnomechecker.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def _is_stable(version: str) -> bool:
major, minor = ver_list[:2]
if set(ver_list[1:]) & {"alpha", "beta", "rc"}:
return False
if int(major) < 40 and len(ver_list) > 2:
if int(major) > 0 and int(major) < 40 and len(ver_list) > 2:
return (int(minor) % 2) == 0
# XXX If we didn't see any indication that the version is a prerelease,
# assume it's a normal (stable) release
Expand Down

0 comments on commit ef8568c

Please sign in to comment.