-
Notifications
You must be signed in to change notification settings - Fork 906
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 <nok.lam.chan@quantumblack.com> * change to add custom click message on error instead of overriding get_commands Signed-off-by: Nok Lam Chan <nok.lam.chan@quantumblack.com> * add test Signed-off-by: Nok Lam Chan <nok.lam.chan@quantumblack.com> * clean up Signed-off-by: Nok Lam Chan <nok.lam.chan@quantumblack.com> * catch the error message from click Signed-off-by: Nok Lam Chan <nok.lam.chan@quantumblack.com> * fix unitests Signed-off-by: Nok Lam Chan <nok.lam.chan@quantumblack.com> * Update error message Signed-off-by: Nok Lam Chan <nok.lam.chan@quantumblack.com> * move color constant to the upper module Signed-off-by: Nok Lam Chan <nok.lam.chan@quantumblack.com> * fix imports Signed-off-by: Nok Lam Chan <nok.lam.chan@quantumblack.com> * release note Signed-off-by: Nok <nok.lam.chan@quantumblack.com> --------- Signed-off-by: Nok Lam Chan <nok.lam.chan@quantumblack.com> Signed-off-by: Nok <nok.lam.chan@quantumblack.com>
- 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