Enable mypy checks for tests/ files (#2963)
This commit is contained in:
parent
2825818af6
commit
544400606f
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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__,
|
||||
|
|
|
|||
Loading…
Reference in New Issue