2021-11-18 12:25:38 -08:00
|
|
|
# IMPORTANT
|
|
|
|
|
# Set "ignore_missing_imports" per package below, rather than globally.
|
|
|
|
|
# That will help identify missing type stubs that should be added to the sanity test environment.
|
|
|
|
|
|
|
|
|
|
[mypy]
|
|
|
|
|
# There are ~350 errors reported in ansible-test when strict optional checking is enabled.
|
|
|
|
|
# Until the number of occurrences are greatly reduced, it's better to disable strict checking.
|
|
|
|
|
strict_optional = False
|
2023-01-25 12:46:09 -08:00
|
|
|
# There are ~13 type-abstract errors reported in ansible-test.
|
|
|
|
|
# This is due to assumptions mypy makes about Type and abstract types.
|
|
|
|
|
# See: https://discuss.python.org/t/add-abstracttype-to-the-typing-module/21996/13
|
2024-08-06 14:53:40 -07:00
|
|
|
# The safe-super rule is disabled because it reports false positives on methods which return None.
|
|
|
|
|
disable_error_code = type-abstract,safe-super
|
2021-11-18 12:25:38 -08:00
|
|
|
|
|
|
|
|
[mypy-argcomplete]
|
|
|
|
|
ignore_missing_imports = True
|
|
|
|
|
|
2023-04-11 12:03:18 -07:00
|
|
|
[mypy-argcomplete.finders]
|
|
|
|
|
ignore_missing_imports = True
|
|
|
|
|
|
2021-11-18 12:25:38 -08:00
|
|
|
[mypy-coverage]
|
|
|
|
|
ignore_missing_imports = True
|
|
|
|
|
|
|
|
|
|
[mypy-ansible_release]
|
|
|
|
|
ignore_missing_imports = True
|
2022-03-23 16:55:37 -04:00
|
|
|
|
|
|
|
|
[mypy-StringIO]
|
|
|
|
|
ignore_missing_imports = True
|