Skip to content

Enable more mypy and Pylint checks for test_tooling/#4620

Open
correctmost wants to merge 1 commit into
archlinux:masterfrom
correctmost:cm/enable-mypy-checks
Open

Enable more mypy and Pylint checks for test_tooling/#4620
correctmost wants to merge 1 commit into
archlinux:masterfrom
correctmost:cm/enable-mypy-checks

Conversation

@correctmost

Copy link
Copy Markdown
Contributor

PR Description:

I think it's worthwhile to type check test code. This also makes it easier to run other type checkers on the codebase without configuring exclusions.

Tests and Checks

  • I'm not able to test the changes locally, but I did review the code a few times before submitting the PR

@correctmost correctmost requested a review from Torxed as a code owner July 8, 2026 04:44
Comment thread test_tooling/qemu/qemu.py
def ensure_sudo():
global sudo_password # pylint: disable=global-statement
@cache
def get_sudo_password() -> str:

@correctmost correctmost Jul 8, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One flaw with this code and the previous ensure_sudo code is that a mistyped password cannot be corrected after the first attempt is tried.

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