Skip to content

fix: resolve lint and mypy errors in sys_utils_nixos.py#6

Open
mrosseel wants to merge 1 commit intomainfrom
fix/sys-utils-nixos-ci
Open

fix: resolve lint and mypy errors in sys_utils_nixos.py#6
mrosseel wants to merge 1 commit intomainfrom
fix/sys-utils-nixos-ci

Conversation

@mrosseel
Copy link
Owner

Summary

  • Fix Ruff linting errors in sys_utils_nixos.py (unused imports, line length)
  • Fix mypy type errors by adding proper type annotations and handling Optional types
  • Update pyproject.toml to include sys_utils_nixos in mypy overrides

Test plan

  • nox -s lint passes
  • nox -s type_hints passes
  • Verify sys_utils_nixos functionality on NixOS

🤖 Generated with Claude Code

- Fix E402 lint: reorder gi imports, add noqa for gi.repository
- Fix Python 3.10 syntax: dict | None → Optional[dict]
- Fix utils.pifinder_home → utils.home_dir / "PiFinder"
- Add dbus/gi to mypy ignore list (no type stubs available)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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