-
-
Notifications
You must be signed in to change notification settings - Fork 466
/
Copy pathmypy.ini
43 lines (34 loc) · 1019 Bytes
/
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
32
33
34
35
36
37
38
39
40
41
42
43
# Regular configuration file (can be used as base in other projects, runs in CI)
[mypy]
# Modified in `tests.yml`
incremental = true
# Strictness:
allow_redefinition = true
check_untyped_defs = true
# TODO: add type args to all generics
disallow_any_generics = false
# TODO: fix `Any` subclassing in `typeshed/builtins.pyi`
disallow_subclassing_any = false
ignore_missing_imports = false
strict = true
strict_bytes = true
local_partial_types = true
warn_unreachable = true
# TODO: update our output assertions to match a new syntax
force_uppercase_builtins = true
force_union_syntax = true
disable_error_code = empty-body
enable_error_code = deprecated
show_traceback = true
plugins =
mypy_django_plugin.main,
mypy.plugins.proper_plugin
# Ignore incomplete hints in 3rd party stubs:
[mypy-yaml.*]
disallow_untyped_defs = false
disallow_incomplete_defs = false
[mypy-cryptography.*]
ignore_errors = true
# Our settings:
[mypy.plugins.django-stubs]
django_settings_module = scripts.django_tests_settings