-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
98bc14e
commit 1c0f8dd
Showing
5 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
def main(): | ||
pass | ||
|
||
if __name__ == '__main__': | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
class DagCompiler: | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
from dataclasses import dataclass, field | ||
from typing import Dict, Any, Optional, List | ||
import dacite | ||
|
||
class RepoType: | ||
Python = "python" | ||
Yaml = "yaml" | ||
|
||
@dataclass | ||
class TeamConnection: | ||
conn_id: str | ||
replace_fields: List[str] | ||
@staticmethod | ||
def from_list(items: List[Dict[str, Any]]): | ||
return [dacite.from_dict(data_class=TeamConnection, data=i) for i in items] | ||
|
||
@dataclass | ||
class Alerting: | ||
kind: str | ||
conn_id: str | ||
|
||
@staticmethod | ||
def from_dict(conf): | ||
return dacite.from_dict(data_class=Alerting, data=conf) | ||
|
||
|
||
@dataclass | ||
class TeamConfig: | ||
name: str | ||
prefix: str | ||
owner: str | ||
repo_id: Optional[str] | ||
role_id: Optional[int] | ||
alert: Optional[Alerting] | ||
conns: Optional[List[TeamConnection]] | ||
team_dir: Optional[str] | ||
pool: Optional[str] | ||
type: Optional[str] = "yaml" | ||
|
||
def is_yaml(self): | ||
return not self.type or self.type == RepoType.Yaml | ||
|
||
def is_python(self): | ||
return self.type == RepoType.Python |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
class Backfill: | ||
pass |