-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add logging of redundant keys #1121
Conversation
feat: print warning, if keys are redundantly defined
@@ -275,6 +276,9 @@ | |||
target = _ensure_container(target) | |||
assert isinstance(target, (DictConfig, ListConfig)) | |||
|
|||
global log_file | |||
log_file = log_filename |
Check notice
Code scanning / CodeQL
Unused global variable Note
@@ -317,6 +322,9 @@ | |||
target = _ensure_container(target) | |||
assert isinstance(target, (DictConfig, ListConfig)) | |||
|
|||
global log_file | |||
log_file = log_filename |
Check notice
Code scanning / CodeQL
Unused global variable Note
@@ -6,6 +6,8 @@ | |||
|
|||
import yaml | |||
|
|||
import omegaconf |
Check notice
Code scanning / CodeQL
Module is imported with 'import' and 'import from' Note
f"value '{node}' is defined redundantly in '{node._get_full_key('')}'", | ||
file=file, | ||
) | ||
except: |
Check notice
Code scanning / CodeQL
Except block handles 'BaseException' Note
f"value '{node}' is defined redundantly in '{node._get_full_key('')}'", | ||
file=file, | ||
) | ||
except: |
Check notice
Code scanning / CodeQL
Empty except Note
sorry I chose the wrong target branch