Skip to content

Move show_warnings from main.py to special/iocommands.py#1834

Merged
rolandwalker merged 1 commit intomainfrom
RW/migrate-show-warnings-from-main-to-special
Apr 11, 2026
Merged

Move show_warnings from main.py to special/iocommands.py#1834
rolandwalker merged 1 commit intomainfrom
RW/migrate-show-warnings-from-main-to-special

Conversation

@rolandwalker
Copy link
Copy Markdown
Contributor

Description

The globals may not be pretty, but the file location is more correct.

The behavior of the CLI overriding the config file is preserved, but that logic is moved to MyCli construction instead of within connect(), which is also a better location for computing configuration.

Some tangential tests are included since other regression tests are wholly deleted.

Checklist

  • I added this contribution to the changelog.md file.
  • I added my name to the AUTHORS file (or it's already there).
  • To lint and format the code, I ran
    uv run ruff check && uv run ruff format && uv run mypy --install-types .

@rolandwalker rolandwalker self-assigned this Apr 11, 2026
@rolandwalker rolandwalker force-pushed the RW/migrate-show-warnings-from-main-to-special branch from a5c06e3 to a8affb3 Compare April 11, 2026 15:11
The globals may not be pretty, but the file location is more correct.

The behavior of the CLI overriding the config file is preserved, but
that logic is moved to MyCli construction instead of within connect(),
which is also a better location for computing configuration.

Some tangential tests are included since other regression tests are
wholly deleted.
@rolandwalker rolandwalker force-pushed the RW/migrate-show-warnings-from-main-to-special branch from a8affb3 to 8a70ca4 Compare April 11, 2026 15:19
@rolandwalker rolandwalker merged commit 7f25681 into main Apr 11, 2026
8 checks passed
@rolandwalker rolandwalker deleted the RW/migrate-show-warnings-from-main-to-special branch April 11, 2026 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant