Skip to content

Enable more mypy and Pylint checks for test_tooling/#4620

Merged
svartkanin merged 1 commit into
archlinux:masterfrom
correctmost:cm/enable-mypy-checks
Jul 12, 2026
Merged

Enable more mypy and Pylint checks for test_tooling/#4620
svartkanin merged 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.

@svartkanin svartkanin merged commit c110081 into archlinux:master Jul 12, 2026
10 checks passed
@correctmost correctmost deleted the cm/enable-mypy-checks branch July 12, 2026 15:46
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.

2 participants