forked from ITISFoundation/osparc-simcore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mypy.ini
31 lines (29 loc) · 1 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
# 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: removes all the missing imports stuff from external libraries which is annoying to the least
ignore_missing_imports = True
namespace_packages = True
no_implicit_reexport = True
plugins = pydantic.mypy, sqlalchemy.ext.mypy.plugin
python_version = 3.10
show_column_numbers = True
show_error_context = False
strict_optional = False
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