-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmypy.ini
More file actions
28 lines (25 loc) · 812 Bytes
/
mypy.ini
File metadata and controls
28 lines (25 loc) · 812 Bytes
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
[mypy]
warn_return_any=true
disallow_untyped_calls=true
exclude = ^(migrations|.*manage\.py)$ # 排除 migrations 資料夾和 manage.py 檔案
# 以下設定皆來自 https://github.com/typeddjango/django-stubs/blob/master/mypy.ini
allow_redefinition = true
check_untyped_defs = true
ignore_missing_imports = true
incremental = true
strict_optional = true
show_traceback = true
warn_unused_ignores = true
warn_redundant_casts = true
warn_unused_configs = true
warn_unreachable = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
disable_error_code = empty-body
# TODO: update our output assertions to match a new syntax
force_uppercase_builtins = true
force_union_syntax = true
plugins =
mypy_django_plugin.main
[mypy.plugins.django-stubs]
django_settings_module = DjangoTutorial.settings