diff options
| author | bozo.kopic <bozo@kopic.xyz> | 2022-03-25 21:18:41 +0100 |
|---|---|---|
| committer | bozo.kopic <bozo@kopic.xyz> | 2022-03-25 21:18:41 +0100 |
| commit | 17af1ae6ca22d3bf76d09705cb3f29b17dbfdab7 (patch) | |
| tree | 34ace40ec3a433592f5b2157cb231217c8821043 /src_py/hatter/common.py | |
| parent | 130055c70ad2b062adf2c4df13dd2ed5ce062f97 (diff) | |
WIP server
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 |
