-
Notifications
You must be signed in to change notification settings - Fork 111
/
Copy pathpyproject.toml
89 lines (78 loc) · 2.56 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
83
84
85
86
87
88
89
[tool.black]
target-version = ["py310"]
# Keep this default because xml/report do not know to use load it from config file:
# data_file = ".coverage"
# [tool.coverage.paths]
# source = ["plugins", "extensions"]
# [tool.coverage.report]
# exclude_also = ["pragma: no cover", "if TYPE_CHECKING:"]
# omit = ["test/*"]
# # Increase it just so it would pass on any single-python run
# fail_under = 92
# skip_covered = true
# skip_empty = true
# # During development we might remove code (files) with coverage data, and we dont want to fail:
# ignore_errors = true
# show_missing = true
# [tool.coverage.run]
# source = ["src"]
# # Do not use branch until bug is fixes:
# # https://github.com/nedbat/coveragepy/issues/605
# # branch = true
# parallel = true
# concurrency = ["multiprocessing", "thread"]
[tool.isort]
profile = "black"
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
ensure_newline_before_comments = true
[tool.mypy]
python_version = "3.9"
color_output = true
error_summary = true
# TODO: Remove temporary skips and close https://github.com/ansible/event-driven-ansible/issues/258
strict = true
disallow_untyped_calls = true
disallow_untyped_defs = true
# disallow_any_generics = true
# disallow_any_unimported = true
# warn_redundant_casts = True
# warn_return_any = True
warn_unused_configs = true
# site-packages is here to help vscode mypy integration getting confused
exclude = "(build|dist|test/local-content|site-packages|~/.pyenv|examples/playbooks/collections|plugins/modules)"
# https://github.com/python/mypy/issues/12664
incremental = false
namespace_packages = true
explicit_package_bases = true
[[tool.mypy.overrides]]
module = [
# Dependencies not following pep-561 yet:
"aiokafka.*", # https://github.com/aio-libs/aiokafka/issues/980
"ansible.*", # https://github.com/ansible/ansible/issues/83801
"asyncmock", # https://github.com/timsavage/asyncmock/issues/8
"kafka.*", # https://github.com/dpkp/kafka-python/issues/2446
]
ignore_missing_imports = true
[tool.pylint.MASTER]
# Temporary ignore until we are able to address issues on these:
ignore-paths = "^(demos/dynatrace-demo/fake_app.py|tests/|plugins/modules).*$"
[tool.pylint."MESSAGES CONTROL"]
disable = [
"duplicate-code",
"pointless-string-statement",
"too-few-public-methods",
"too-many-instance-attributes",
"missing-module-docstring",
"missing-class-docstring",
"missing-function-docstring",
"too-many-arguments",
"too-many-branches",
"inconsistent-return-statements",
"invalid-name",
]
max-line-length=120
[tool.ruff.lint]
ignore = [ "E402" ]