summaryrefslogtreecommitdiffstats
path: root/test/sanity/code-smell/mypy/ansible-test.ini
blob: db7bb21af818de92ec5e5d8e7980da42ec3d5fa8 (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# 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
# The safe-super rule is disabled because it reports false positives on methods which return None.
disable_error_code = type-abstract,safe-super

[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

[mypy-voluptuous]
ignore_missing_imports = True

[mypy-voluptuous.humanize]
ignore_missing_imports = True

[mypy-astroid]
ignore_missing_imports = True

[mypy-pylint.interfaces]
ignore_missing_imports = True

[mypy-pylint.checkers]
ignore_missing_imports = True

[mypy-pylint.checkers.utils]
ignore_missing_imports = True

[mypy-pylint.lint]
ignore_missing_imports = True

[mypy-antsibull_docs_parser]
ignore_missing_imports = True

[mypy-antsibull_docs_parser.parser]
ignore_missing_imports = True

[mypy-yamllint]
ignore_missing_imports = True

[mypy-yamllint.config]
ignore_missing_imports = True

[mypy-py]
ignore_missing_imports = True

[mypy-py._path]
ignore_missing_imports = True

[mypy-py._path.local]
ignore_missing_imports = True