forked from Checkmk/checkmk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mypy-raw.ini
59 lines (55 loc) · 2.62 KB
/
mypy-raw.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
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
# NOTE: Keep this is sync with the tool.mypy sections of pyproject.toml!
[mypy]
# NOTE: Due to our "conditional import technology", enabling unused-ignore is not possible. :-/
enable_error_code = ignore-without-code,redundant-self,truthy-iterable,unimported-reveal,unused-awaitable
explicit_package_bases = true
mypy_path = $MYPY_CONFIG_FILE_DIR:$MYPY_CONFIG_FILE_DIR/non-free/cmc-protocols:$MYPY_CONFIG_FILE_DIR/non-free/cmk-update-agent:$MYPY_CONFIG_FILE_DIR/livestatus/api/python:$MYPY_CONFIG_FILE_DIR/omd/packages/omd:$MYPY_CONFIG_FILE_DIR/tests/typeshed:$MYPY_CONFIG_FILE_DIR/packages/cmk-trace
plugins = pydantic.mypy
python_version = 3.12
scripts_are_modules = true
# When all of these are true, we can enable --strict
check_untyped_defs = true
disallow_any_generics = false
disallow_incomplete_defs = true
# different!
disallow_subclassing_any = false
disallow_untyped_calls = false
disallow_untyped_decorators = true
disallow_untyped_defs = false
extra_checks = true
no_implicit_reexport = true
strict_equality = true
warn_redundant_casts = true
warn_return_any = false
warn_unused_configs = true
# different!
warn_unused_ignores = false
# Miscellaneous stuff not in --strict
disallow_any_decorated = false
disallow_any_explicit = false
disallow_any_expr = false
disallow_any_unimported = false
no_implicit_optional = true
strict_optional = true
warn_unreachable = false
# hidden flags for PEP 688 compat, see https://github.com/python/mypy/issues/15313
disable_bytearray_promotion = true
disable_memoryview_promotion = true
[mypy-cmk.gui.background_job.*,cmk.gui.mobile.views,cmk.gui.views.layout.*,cmk.gui.wato.pages.bulk_discovery,cmk.gui.wato.pages.bulk_edit,cmk.gui.wato.pages.folders,cmk.gui.wato.pages.parentscan,cmk.gui.watolib.bulk_discovery,cmk.gui.watolib.config_sync,cmk.gui.watolib.main_menu,cmk.gui.watolib.network_scan,cmk.notification_plugins.*,cmk.update_config.*,cmk.utils.crypto.*,cmk.utils.livestatus_helpers.*,tests.gui_e2e.*,tests.unit.cmk.ec.*,tests.unit.cmk.update_config.*]
disallow_untyped_calls = true
disallow_untyped_defs = true
warn_return_any = true
warn_unused_ignores = true
[mypy-cmk.ec.*]
disallow_any_generics = true
disallow_untyped_calls = true
disallow_untyped_defs = true
warn_unreachable = true
# Disable non CRE module reference checking for Raw Edition repositories
[mypy-cmk.base.automations.cee,cmk.base.cee.*,cmk.base.default_config.cee,cmk.base.default_config.cme,cmk.base.modes.cee,cmk.cee.*,cmk.gui.cee.*,cmk.gui.cme.*,cmk.gui.cce.*,cmk.gui.cse.*,tests.testlib.cse.*]
ignore_missing_imports = true
[pydantic-mypy]
init_forbid_extra = true
init_typed = true
warn_required_dynamic_aliases = true
warn_untyped_fields = true