mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-15 08:17:08 +08:00
* Fill remaining missing hints with Any & disallow partial hints * ModelFormatDict -> _ModelFormatDict * Fixes * Add __init__ return hints * Add suppression
28 lines
666 B
INI
28 lines
666 B
INI
# Regular configuration file (can be used as base in other projects, runs in CI)
|
|
|
|
[mypy]
|
|
allow_redefinition = True
|
|
check_untyped_defs = True
|
|
ignore_missing_imports = True
|
|
incremental = True
|
|
strict_optional = True
|
|
show_traceback = True
|
|
warn_no_return = False
|
|
warn_unused_ignores = True
|
|
warn_redundant_casts = True
|
|
warn_unused_configs = True
|
|
warn_unreachable = True
|
|
disallow_untyped_defs = true
|
|
disallow_incomplete_defs = true
|
|
|
|
plugins =
|
|
mypy_django_plugin.main
|
|
|
|
# Ignore incomplete hints in yaml-stubs
|
|
[mypy-yaml.*]
|
|
disallow_untyped_defs = false
|
|
disallow_incomplete_defs = false
|
|
|
|
[mypy.plugins.django-stubs]
|
|
django_settings_module = scripts.django_tests_settings
|