Adjust mypy.ini
This commit is contained in:
parent
64d87d505e
commit
6c0768099f
33
mypy.ini
33
mypy.ini
|
@ -1,10 +1,29 @@
|
|||
[mypy]
|
||||
# no stubs for nagiosplugin => ignore: found module but no type hints or library stubs [import]
|
||||
ignore_missing_imports = true
|
||||
# no subs for nagiosplugin => ignore: Class cannot subclass "Summary" (has type "Any") [misc]
|
||||
disallow_subclassing_any = false
|
||||
# no stubs for nagiosplugin => ignore: Untyped decorator makes function "main" untyped [misc]
|
||||
disallow_untyped_decorators = false
|
||||
|
||||
show_error_codes = true
|
||||
strict = true
|
||||
exclude = build/
|
||||
|
||||
[mypy-setup]
|
||||
ignore_errors = True
|
||||
|
||||
[mypy-urllib3.*]
|
||||
ignore_missing_imports = true
|
||||
|
||||
[mypy-nagiosplugin.*]
|
||||
ignore_missing_imports = true
|
||||
|
||||
[mypy-check_patroni.types]
|
||||
# no stubs for nagioplugin => ignore: Class cannot subclass "Resource" (has type "Any") [misc]
|
||||
disallow_subclassing_any = false
|
||||
|
||||
[mypy-check_patroni.node]
|
||||
# no subs for nagiosplugin => ignore: Class cannot subclass "Summary" (has type "Any") [misc]
|
||||
disallow_subclassing_any = false
|
||||
|
||||
[mypy-check_patroni.cluster]
|
||||
# no subs for nagiosplugin => ignore: Class cannot subclass "Summary" (has type "Any") [misc]
|
||||
disallow_subclassing_any = false
|
||||
|
||||
[mypy-check_patroni.cli]
|
||||
# no stubs for nagiosplugin => ignore: Untyped decorator makes function "main" untyped [misc]
|
||||
disallow_untyped_decorators = false
|
||||
|
|
Loading…
Reference in a new issue