Skip to content

Commit 2482c5a

Browse files
authored
Merge pull request #1583 from dbcli/RW/no-checkup-diagnose-free-entry-sections
Don't attempt to diagnose free-entry sections in `--checkup`
2 parents 8c90bc1 + c008fef commit 2482c5a

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Upcoming (TBD)
44
Bug Fixes
55
---------
66
* Watch command now returns correct time when ran as part of a multi-part query (#1565)
7+
* Don't diagnose free-entry sections such as `[favorite_queries]` in `--checkup`.
78

89

910
1.54.1 (2026/02/17)

mycli/main.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2395,6 +2395,14 @@ def do_config_checkup(mycli: MyCli) -> None:
23952395
if section_name == 'colors' and item_name.startswith('sql.'):
23962396
# these are commented out in the package myclirc
23972397
continue
2398+
if section_name in [
2399+
'favorite_queries',
2400+
'init-commands',
2401+
'alias_dsn',
2402+
'alias_dsn.init-commands',
2403+
]:
2404+
# these are free-entry sections, so a comparison per item is not meaningful
2405+
continue
23982406
transition_key = f'{indent}[{section_name}]\n{indent}{item_name}'
23992407
if transition_key in transitions:
24002408
continue

0 commit comments

Comments
 (0)