forked from ansible-collections/cloud.terraform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
33 lines (29 loc) · 841 Bytes
/
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
[tool.black]
line-length = 120
target-version = ["py38", "py39", "py310", "py311"]
include = "\\.pyi?$"
workers = 4
[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
[[tool.mypy.overrides]]
module = [
"ansible.*",
]
ignore_missing_imports = true
# this module parses JSON and would need casts and asserts all over the place
# because parsing fails anyway, we ignore these two errors, as
# we assume that the JSON structure Terraform returns is consistent
[[tool.mypy.overrides]]
module = [
"ansible_collections.cloud.terraform.plugins.module_utils.models",
]
disable_error_code = ["arg-type", "union-attr"]