-
Notifications
You must be signed in to change notification settings - Fork 908
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make it possible to use Kedro after uninstalling Rich. (#3838)
* attempt to configure fallback logger Signed-off-by: lrcouto <[email protected]> * Set up fallback for logging on the logging function itself Signed-off-by: lrcouto <[email protected]> * Lint Signed-off-by: lrcouto <[email protected]> * Lint Signed-off-by: lrcouto <[email protected]> * Update kedro/logging.py Co-authored-by: Sajid Alam <[email protected]> Signed-off-by: L. R. Couto <[email protected]> * Changes to rich variable on logging Signed-off-by: lrcouto <[email protected]> * Lint Signed-off-by: lrcouto <[email protected]> * attempt to configure fallback logger Signed-off-by: lrcouto <[email protected]> * Set up fallback for logging on the logging function itself Signed-off-by: lrcouto <[email protected]> * Lint Signed-off-by: lrcouto <[email protected]> * Lint Signed-off-by: lrcouto <[email protected]> * Update kedro/logging.py Co-authored-by: Sajid Alam <[email protected]> Signed-off-by: L. R. Couto <[email protected]> * Changes to rich variable on logging Signed-off-by: lrcouto <[email protected]> * Lint Signed-off-by: lrcouto <[email protected]> * adapt default logging Signed-off-by: lrcouto <[email protected]> * Update kedro/logging.py Co-authored-by: Juan Luis Cano Rodríguez <[email protected]> Signed-off-by: L. R. Couto <[email protected]> * Create separate logging config file for rich Signed-off-by: lrcouto <[email protected]> * Hello linter my old friend Signed-off-by: lrcouto <[email protected]> * Alternative for rich in kedro ipython Signed-off-by: lrcouto <[email protected]> * Remove unnecessary try/except block Signed-off-by: lrcouto <[email protected]> * Update pyproject.toml Co-authored-by: Juan Luis Cano Rodríguez <[email protected]> Signed-off-by: L. R. Couto <[email protected]> * Resolve merge conflict Signed-off-by: lrcouto <[email protected]> * Lint Signed-off-by: lrcouto <[email protected]> * Fix config file paths Signed-off-by: lrcouto <[email protected]> * Update kedro/ipython/__init__.py Co-authored-by: Deepyaman Datta <[email protected]> Signed-off-by: L. R. Couto <[email protected]> * Update kedro/ipython/__init__.py Co-authored-by: Deepyaman Datta <[email protected]> Signed-off-by: L. R. Couto <[email protected]> * Prevent kedro ipython from reimporting rich multiple times Signed-off-by: lrcouto <[email protected]> * Logging config Signed-off-by: lrcouto <[email protected]> * Change test config Signed-off-by: lrcouto <[email protected]> * Remove ' yEs ' tests Signed-off-by: lrcouto <[email protected]> * Tests to cover ipython changes Signed-off-by: lrcouto <[email protected]> * Add test for import Signed-off-by: lrcouto <[email protected]> * Ignore test coverage on import try/except Signed-off-by: lrcouto <[email protected]> * Lint Signed-off-by: lrcouto <[email protected]> * Unpin cookiecutter version Signed-off-by: lrcouto <[email protected]> * Add changes to documentation Signed-off-by: lrcouto <[email protected]> * Update RELEASE.md Co-authored-by: Merel Theisen <[email protected]> Signed-off-by: L. R. Couto <[email protected]> * Change RICH variable name to RICH_INTALLED Signed-off-by: lrcouto <[email protected]> * Add info about uninstalling rich on logging doc page Signed-off-by: lrcouto <[email protected]> --------- Signed-off-by: lrcouto <[email protected]> Signed-off-by: L. R. Couto <[email protected]> Co-authored-by: Sajid Alam <[email protected]> Co-authored-by: Juan Luis Cano Rodríguez <[email protected]> Co-authored-by: Deepyaman Datta <[email protected]> Co-authored-by: Merel Theisen <[email protected]>
- Loading branch information
1 parent
8eff357
commit a53500a
Showing
13 changed files
with
118 additions
and
20 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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
include README.md | ||
include LICENSE.md | ||
include kedro/framework/project/default_logging.yml | ||
include kedro/framework/project/rich_logging.yml | ||
include kedro/ipython/*.png | ||
include kedro/ipython/*.svg | ||
recursive-include kedro/templates * |
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
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
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
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
version: 1 | ||
|
||
disable_existing_loggers: False | ||
|
||
handlers: | ||
rich: | ||
class: kedro.logging.RichHandler | ||
rich_tracebacks: True | ||
# Advance options for customisation. | ||
# See https://docs.kedro.org/en/stable/logging/logging.html#project-side-logging-configuration | ||
# tracebacks_show_locals: False | ||
|
||
loggers: | ||
kedro: | ||
level: INFO | ||
|
||
root: | ||
handlers: [rich] |
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
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