-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmypy.ini
32 lines (23 loc) · 988 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
# Configuration for static type checking
[mypy]
files = vr_to_joystick
exclude = _oldgarbage
# even if we find a value that we can't determine a type for, keep checking everything after it
check_untyped_defs = True
# require explicitly stating that a field is optional, even if you assign `None` as its default value
no_implicit_optional = True
# error for any function or top-level variable that isn't fully type annotated
disallow_untyped_defs = True
# warn if a function with an explicit return type returns a value with type Any
warn_return_any = True
# no generic types with "Any" as a parameter
disallow_any_generics = True
###########
# check to see if there are type hints or stubs for any third party package you use.
# if there aren't any, add a section for it here so mypy doesn't yell at us about it
# not being type hinted.
###########
[mypy-openvr.*]
ignore_missing_imports = True
[mypy-vr_to_joystick.pyvjoy.*]
ignore_errors = True