anki/qt/mypy.ini
Damien Elmes 5a73641b57 enable strict equality checks in mypy
Without it, the following code reports no problems:

def foo() -> int:
    return 5
print(foo == 5)
2020-08-03 10:26:40 +10:00

58 lines
1.2 KiB
INI

[mypy]
python_version = 3.7
pretty = true
no_strict_optional = true
show_error_codes = true
disallow_untyped_decorators = True
warn_redundant_casts = True
warn_unused_configs = True
check_untyped_defs = true
strict_equality = true
[mypy-aqt.mpv]
ignore_errors=true
[mypy-win32file]
ignore_missing_imports = True
[mypy-win32pipe]
ignore_missing_imports = True
[mypy-pywintypes]
ignore_missing_imports = True
[mypy-winerror]
ignore_missing_imports = True
[mypy-distro]
ignore_missing_imports = True
[mypy-pyaudio]
ignore_missing_imports = True
[mypy-win32api]
ignore_missing_imports = True
[mypy-xml.dom]
ignore_missing_imports = True
[mypy-psutil]
ignore_missing_imports = True
[mypy-bs4]
ignore_missing_imports = True
[mypy-pythoncom]
ignore_missing_imports = True
[mypy-win32com]
ignore_missing_imports = True
[mypy-send2trash]
ignore_missing_imports = True
[mypy-markdown]
ignore_missing_imports = True
[mypy-jsonschema.*]
ignore_missing_imports = True
[mypy-ankirspy]
ignore_missing_imports = True
[mypy-PyQt5.sip]
ignore_missing_imports = True
[mypy-win32com.client]
ignore_missing_imports = True
[mypy-darkdetect]
ignore_missing_imports = True
[mypy-socks]
ignore_missing_imports = True
[mypy-aqt.forms.*]
check_untyped_defs=false