generated from ansible-collections/collection_template
-
Notifications
You must be signed in to change notification settings - Fork 36
/
pyproject.toml
37 lines (32 loc) · 892 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
34
35
36
37
[tool.black]
line-length = 120
target-version = ["py39", "py310", "py311", "py312"]
include = "\\.pyi?$"
workers = 4
[tool.isort]
profile = "black"
line_length = 120
[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"]