Skip to content

Commit

Permalink
Change: Use auto for release sign return value enum
Browse files Browse the repository at this point in the history
Don't maintain the return values by hand and instead use auto.
  • Loading branch information
bjoernricks committed Feb 5, 2024
1 parent 2181f51 commit d5befa4
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions pontos/release/sign.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import subprocess
from argparse import Namespace
from asyncio.subprocess import Process
from enum import IntEnum
from enum import IntEnum, auto
from os import PathLike
from pathlib import Path
from typing import AsyncContextManager, Optional, SupportsInt, Union
Expand Down Expand Up @@ -36,12 +36,12 @@ class SignReturnValue(IntEnum):
"""

SUCCESS = 0
TOKEN_MISSING = 1
NO_PROJECT = 2
NO_RELEASE_VERSION = 3
NO_RELEASE = 4
UPLOAD_ASSET_ERROR = 5
SIGNATURE_GENERATION_FAILED = 6
TOKEN_MISSING = auto()
NO_PROJECT = auto()
NO_RELEASE_VERSION = auto()
NO_RELEASE = auto()
UPLOAD_ASSET_ERROR = auto()
SIGNATURE_GENERATION_FAILED = auto()


class SignatureError(PontosError):
Expand Down

0 comments on commit d5befa4

Please sign in to comment.