diff options
Diffstat (limited to 'src_py/hatter/common.py')
| -rw-r--r-- | src_py/hatter/common.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src_py/hatter/common.py b/src_py/hatter/common.py index cf99bb9..1b1de47 100644 --- a/src_py/hatter/common.py +++ b/src_py/hatter/common.py @@ -1,4 +1,6 @@ from pathlib import Path +import enum +import typing from hat import json @@ -8,3 +10,23 @@ package_path: Path = Path(__file__).parent json_schema_repo: json.SchemaRepository = json.SchemaRepository( json.json_schema_repo, json.SchemaRepository.from_json(package_path / 'json_schema_repo.json')) + + +class Order(enum.Enum): + ASC = 'ASC' + DESC = 'DESC' + + +class Status(enum.Enum): + PENDING = 0 + RUNNING = 1 + SUCCESS = 2 + FAILURE = 3 + + +class Commit(typing.NamedTuple): + repo: str + hash: str + change: float + status: Status + output: str |
