projects
/
python_utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add a "unittest" that runs stuff like reminder and unscramble
[python_utils.git]
/
config.py
diff --git
a/config.py
b/config.py
index 588b7e072006d6d27cbf115e7220f9e40b6cc706..42a7044d21c6d86c0f4a793b81d7a70ed23b04e9 100644
(file)
--- a/
config.py
+++ b/
config.py
@@
-191,9
+191,7
@@
def augment_sys_argv_from_environment_variables():
if env in os.environ:
if not is_flag_already_in_argv(var):
value = os.environ[env]
if env in os.environ:
if not is_flag_already_in_argv(var):
value = os.environ[env]
- saved_messages.append(
- f'Initialized from environment: {var} = {value}'
- )
+ saved_messages.append(f'Initialized from environment: {var} = {value}')
from string_utils import to_bool
if len(chunks) == 1 and to_bool(value):
from string_utils import to_bool
if len(chunks) == 1 and to_bool(value):
@@
-282,9
+280,7
@@
def parse(entry_module: Optional[str]) -> Dict[str, Any]:
raise Exception(
f'Encountered unrecognized config argument(s) {unknown} with --config_rejects_unrecognized_arguments enabled; halting.'
)
raise Exception(
f'Encountered unrecognized config argument(s) {unknown} with --config_rejects_unrecognized_arguments enabled; halting.'
)
- saved_messages.append(
- f'Config encountered unrecognized commandline arguments: {unknown}'
- )
+ saved_messages.append(f'Config encountered unrecognized commandline arguments: {unknown}')
sys.argv = sys.argv[:1] + unknown
# Check for savefile and populate it if requested.
sys.argv = sys.argv[:1] + unknown
# Check for savefile and populate it if requested.