summaryrefslogtreecommitdiff
path: root/test/lib/ansible_test/_util/controller/sanity/mypy/ansible-test.ini
blob: 6be35724a42b279bafbe3be4888b55e41c858fd7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# 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
# 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
disable_error_code = type-abstract

[mypy-argcomplete]
ignore_missing_imports = True

[mypy-argcomplete.finders]
ignore_missing_imports = True

[mypy-coverage]
ignore_missing_imports = True

[mypy-ansible_release]
ignore_missing_imports = True

[mypy-StringIO]
ignore_missing_imports = True