-
Notifications
You must be signed in to change notification settings - Fork 928
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
provide better error message outside of a kedro project (#3680)
* provide error message outside of kedro project with rich style Signed-off-by: Nok Lam Chan <[email protected]> * change to add custom click message on error instead of overriding get_commands Signed-off-by: Nok Lam Chan <[email protected]> * add test Signed-off-by: Nok Lam Chan <[email protected]> * clean up Signed-off-by: Nok Lam Chan <[email protected]> * catch the error message from click Signed-off-by: Nok Lam Chan <[email protected]> * fix unitests Signed-off-by: Nok Lam Chan <[email protected]> * Update error message Signed-off-by: Nok Lam Chan <[email protected]> * move color constant to the upper module Signed-off-by: Nok Lam Chan <[email protected]> * fix imports Signed-off-by: Nok Lam Chan <[email protected]> * release note Signed-off-by: Nok <[email protected]> --------- Signed-off-by: Nok Lam Chan <[email protected]> Signed-off-by: Nok <[email protected]> Signed-off-by: Merel Theisen <[email protected]>
- Loading branch information
Showing
4 changed files
with
54 additions
and
2 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,7 +1,11 @@ | ||
"""``kedro.framework.cli`` implements commands available from Kedro's CLI. | ||
""" | ||
|
||
from .cli import main | ||
from .utils import command_with_verbosity, load_entry_points | ||
# The constant need to be defined first otherwise it causes circular depdencies | ||
ORANGE = (255, 175, 0) | ||
BRIGHT_BLACK = (128, 128, 128) | ||
|
||
from .cli import main # noqa: E402 | ||
from .utils import command_with_verbosity, load_entry_points # noqa: E402 | ||
|
||
__all__ = ["main", "command_with_verbosity", "load_entry_points"] |
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