diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 52ac086..d84ed68 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v1 with: - python-version: '3.x' + python-version: '3.8' - name: Install dependencies run: make devenv - name: Build and publish diff --git a/adagio/exceptions.py b/adagio/exceptions.py index 43b6112..66866c5 100644 --- a/adagio/exceptions.py +++ b/adagio/exceptions.py @@ -2,23 +2,19 @@ class AdagioError(Exception): - def __init__(self, *args, **kwargs): - super().__init__(*args, **kwargs) + pass class WorkflowBug(AdagioError): - def __init__(self, *args, **kwargs): - super().__init__(*args, **kwargs) + pass class CompileError(AdagioError): - def __init__(self, *args, **kwargs): - super().__init__(*args, **kwargs) + pass class DependencyDefinitionError(CompileError): - def __init__(self, *args, **kwargs): - super().__init__(*args, **kwargs) + pass class DependencyNotDefinedError(DependencyDefinitionError): @@ -28,8 +24,7 @@ def __init__(self, name: str, expected: Iterable[str], actual: Iterable[str]): class WorkflowRuntimeError(AdagioError): - def __init__(self, *args, **kwargs): - super().__init__(*args, **kwargs) + pass class AbortedError(WorkflowRuntimeError): @@ -38,10 +33,4 @@ def __init__(self, *args, **kwargs): class SkippedError(WorkflowRuntimeError): - def __init__(self, *args, **kwargs): - super().__init__(*args, **kwargs) - - -def assert_on_compile(bool_expr: bool, msg: str) -> None: - if not bool_expr: - raise CompileError(msg) + pass