-
Notifications
You must be signed in to change notification settings - Fork 910
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move KedroStarterSpec to framework __init__
Signed-off-by: Nok Chan <nok.lam.chan@quantumblack.com>
- Loading branch information
Showing
4 changed files
with
25 additions
and
23 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
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 |
---|---|---|
@@ -1 +1,23 @@ | ||
"""``kedro.framework`` provides Kedro's framework components """ | ||
from typing import Optional | ||
|
||
from attr import define, field | ||
|
||
|
||
@define(order=True) | ||
class KedroStarterSpec: # pylint: disable=too-few-public-methods | ||
"""Specification of custom kedro starter template | ||
Args: | ||
alias: alias of the starter which shows up on `kedro starter list` and is used | ||
by the starter argument of `kedro new` | ||
template_path: path to a directory or a URL to a remote VCS repository supported | ||
by `cookiecutter` | ||
directory: optional directory inside the repository where the starter resides. | ||
origin: reserved field used by kedro internally to determine where the starter | ||
comes from, users do not need to provide this field. | ||
""" | ||
|
||
alias: str | ||
template_path: str | ||
directory: Optional[str] = None | ||
origin: Optional[str] = field(init=False) |
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
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