Skip to content

Commit 23b8735

Browse files
committed
Enable more type checks
1 parent 074cc66 commit 23b8735

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

setup.cfg

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,29 @@ noqa-require-code = True
503503

504504
[mypy]
505505
strict_optional = False
506-
# exclude = pymodbus/client/base.py
506+
# exclude = pymodbus/client/base.py
507+
508+
# below are those used in HomeAssistant
509+
show_error_codes = true
510+
# follow_imports = silent
511+
# ignore_missing_imports = true
512+
local_partial_types = true
513+
strict_equality = true
514+
warn_incomplete_stub = true
515+
warn_redundant_casts = true
516+
warn_unused_configs = true
517+
warn_unused_ignores = true
518+
enable_error_code = ignore-without-code, redundant-self, truthy-iterable
519+
disable_error_code = annotation-unchecked
520+
strict_concatenate = false
521+
# check_untyped_defs = true
522+
# disallow_incomplete_defs = true
523+
disallow_subclassing_any = true
524+
# disallow_untyped_calls = true
525+
disallow_untyped_decorators = true
526+
# disallow_untyped_defs = true
527+
# warn_return_any = true
528+
warn_unreachable = true
507529

508530

509531
[egg_info]

0 commit comments

Comments
 (0)