diff --git a/changelog.md b/changelog.md index 9f62f650..76ad00d0 100644 --- a/changelog.md +++ b/changelog.md @@ -4,6 +4,7 @@ Upcoming (TBD) Bug Fixes --------- * Watch command now returns correct time when ran as part of a multi-part query (#1565) +* Don't diagnose free-entry sections such as `[favorite_queries]` in `--checkup`. 1.54.1 (2026/02/17) diff --git a/mycli/main.py b/mycli/main.py index c8350bd7..cb592bfb 100755 --- a/mycli/main.py +++ b/mycli/main.py @@ -2395,6 +2395,14 @@ def do_config_checkup(mycli: MyCli) -> None: if section_name == 'colors' and item_name.startswith('sql.'): # these are commented out in the package myclirc continue + if section_name in [ + 'favorite_queries', + 'init-commands', + 'alias_dsn', + 'alias_dsn.init-commands', + ]: + # these are free-entry sections, so a comparison per item is not meaningful + continue transition_key = f'{indent}[{section_name}]\n{indent}{item_name}' if transition_key in transitions: continue