-
Notifications
You must be signed in to change notification settings - Fork 8
/
pyproject.toml
82 lines (77 loc) · 2.65 KB
/
pyproject.toml
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
71
72
73
74
75
76
77
78
79
80
81
82
[tool.mypy]
strict = true
pretty = true
show_error_codes = true
show_error_context = true
show_column_numbers = true
warn_unused_configs = true
color_output = true
namespace_packages = true
explicit_package_bases = true
# ignores for dependencies without type information
# ansible basic does not have hints implemented
[[tool.mypy.overrides]]
module = [
"ansible.*",
]
ignore_missing_imports = true
# Overrides error codes for incomplete modules / module_utils
# Remove once hints are added
[[tool.mypy.overrides]]
module = [
"plugins.module_utils.arguments",
"plugins.module_utils.disk",
"plugins.module_utils.iso",
"plugins.module_utils.nic",
"plugins.module_utils.node",
"plugins.module_utils.user",
"plugins.module_utils.dns_config",
"plugins.module_utils.remote_cluster",
"plugins.module_utils.replication",
"plugins.module_utils.snapshot_schedule",
"plugins.module_utils.utils",
"plugins.module_utils.vm",
"plugins.module_utils.time_server",
"plugins.module_utils.time_zone",
"plugins.modules.api",
"plugins.modules.iso_info",
"plugins.modules.iso",
"plugins.modules.node_info",
"plugins.modules.remote_cluster_info",
"plugins.modules.snapshot_schedule",
"plugins.modules.snapshot_schedule_info",
"plugins.modules.task_wait",
"plugins.modules.vm_boot_devices",
"plugins.modules.vm_clone",
"plugins.modules.vm_disk",
"plugins.modules.vm_export",
"plugins.modules.vm_import",
"plugins.modules.vm_info",
"plugins.modules.vm_nic_info",
"plugins.modules.vm_nic",
"plugins.modules.vm_node_affinity",
"plugins.modules.vm_params",
"plugins.modules.vm_replication",
"plugins.modules.vm_replication_info",
"plugins.modules.vm",
"plugins.modules.dns_config",
"plugins.modules.dns_config_info",
"plugins.modules.time_server",
"plugins.modules.time_server_info",
"plugins.modules.time_zone",
"plugins.modules.time_zone_info",
"plugins.inventory.*"
]
disable_error_code = ["no-untyped-def", "no-untyped-call", "assignment", "type-arg", "var-annotated", "import", "misc", "arg-type", "dict-item", "override", "union-attr", "valid-type"]
# TEMP
[[tool.mypy.overrides]]
module = [
"plugins.modules.email_alert_info",
"plugins.modules.email_alert",
"plugins.module_utils.email_alert"
]
disable_error_code = ["no-untyped-def", "no-untyped-call", "assignment", "type-arg", "var-annotated", "import", "misc", "arg-type", "dict-item", "override", "union-attr", "valid-type", "no-any-return"]
[tool.black]
target-version = ["py38"]
# exclude - a regex like 'plugins/inventory/hypercore.py|second.py'
exclude = 'plugins/inventory/hypercore.py'