-
Notifications
You must be signed in to change notification settings - Fork 53
/
mypy.ini
45 lines (34 loc) · 1.17 KB
/
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
44
45
[mypy]
# Ensure we know what we do
warn_redundant_casts = True
warn_unused_ignores = True
warn_unused_configs = True
# Imports management
ignore_missing_imports = True
follow_imports = normal
# Ensure full coverage
disallow_untyped_defs = True
disallow_incomplete_defs = True
disallow_untyped_calls = True
# Should not be used until we find a way to annotate Qt slots
# disallow_untyped_decorators = True
# Restrict dynamic typing (a little)
# e.g. `x: List[Any]` or x: List`
# disallow_any_generics = True
# Cannot enable it as it forbid subcloassing Qt objects
# disallow_subclassing_any = True
# Show errors codes
show_error_codes = True
# Disable error codes
disable_error_code = attr-defined, assignment, override, call-arg, arg-type, has-type, type-var, operator, return-value, call-overload, misc, truthy-function, no-any-return, valid-type, no-untyped-call
# From functions not declared to return Any
warn_return_any = True
[mypy-nxdrive.client.remote_client]
# Too verbose due to the Nuxeo client
warn_return_any = False
[mypy-nxdrive.engine.dao.sqlite]
# Too verbose due to SQLite
warn_return_any = False
[mypy-nxdrive.gui.*]
# Too verbose due to Qt
warn_return_any = False