Enable mypy checks for tests/ files (#2963)

This commit is contained in:
correctmost 2024-11-30 04:00:35 -05:00 committed by GitHub
parent 2825818af6
commit 544400606f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 2 additions and 5 deletions

View File

@ -45,6 +45,7 @@ repos:
additional_dependencies:
- pydantic
- pydantic-settings
- pytest
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.0
hooks:

View File

@ -123,10 +123,6 @@ warn_unreachable = false
module = "archinstall.tui.*"
warn_unreachable = false
[[tool.mypy.overrides]]
module = "tests.*"
ignore_errors = true
[[tool.mypy.overrides]]
module = [
"parted",

View File

@ -105,7 +105,7 @@ def test_config_file_parsing(
arch_config = handler.arch_config
# TODO: Use the real values from the test fixture instead of clearing out the entries
arch_config.disk_config.device_modifications = []
arch_config.disk_config.device_modifications = [] # type: ignore[union-attr]
assert arch_config == ArchConfig(
version=archinstall.__version__,