forked from ITISFoundation/osparc-simcore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mypy.ini
33 lines (31 loc) · 1.09 KB
/
mypy.ini
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
# Global options
[mypy]
check_untyped_defs = True
disallow_any_generics = False
# disallow_untyped_defs: if True, it enforces things like `def __init__(self) -> CLASSNAME` or `def test_() -> None` which does not worth the effort
disallow_untyped_defs = False
follow_imports = silent
# ignore_missing_imports: setting this to True ignores issues from imported libraries, so do not set it!!
ignore_missing_imports = False
namespace_packages = True
no_implicit_reexport = True
# NOTE: this crashes mypy when declared here, therefore it is declared in the setup.cfg files
# plugins = pydantic.mypy
python_version = 3.10
show_column_numbers = True
show_error_context = False
strict_optional = True
; no_implicit_optional = True
warn_redundant_casts = True
warn_return_any = True
warn_unused_configs = True
warn_unused_ignores = True
# SEE https://docs.pydantic.dev/mypy_plugin/#plugin-settings
[pydantic-mypy]
init_forbid_extra = True
init_typed = True
warn_required_dynamic_aliases = True
warn_untyped_fields = True
# Per-module options (one is kept as example):
; [mypy-aio-pika.*]
; ignore_missing_imports = True