anki/.mypy.ini

86 lines
1.9 KiB
INI

[mypy]
python_version = 3.9
pretty = false
no_strict_optional = true
show_error_codes = true
check_untyped_defs = true
disallow_untyped_decorators = True
warn_redundant_casts = True
warn_unused_configs = True
strict_equality = true
namespace_packages = true
explicit_package_bases = true
mypy_path =
pylib,
out/pylib,
qt,
out/qt,
ftl,
pylib/tools,
python
exclude = (qt/bundle/PyOxidizer|pylib/anki/_vendor)
[mypy-anki.*]
disallow_untyped_defs = True
[mypy-anki.importing.*]
disallow_untyped_defs = False
[mypy-anki.exporting]
disallow_untyped_defs = False
[mypy-aqt.operations.*]
no_strict_optional = false
[mypy-anki.scheduler.base]
no_strict_optional = false
[mypy-anki._backend.rsbridge]
ignore_missing_imports = True
[mypy-anki._vendor.stringcase]
disallow_untyped_defs = False
[mypy-stringcase]
ignore_missing_imports = True
[mypy-aqt.mpv]
disallow_untyped_defs=false
ignore_errors=true
[mypy-aqt.winpaths]
disallow_untyped_defs=false
[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-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-fluent.*]
ignore_missing_imports = True
[mypy-compare_locales.*]
ignore_missing_imports = True
[mypy-PyQt5.*]
ignore_errors = True
ignore_missing_imports = True
[mypy-send2trash]
ignore_missing_imports = True
[mypy-win32com.*]
ignore_missing_imports = True
[mypy-jsonschema.*]
ignore_missing_imports = True
[mypy-socks]
ignore_missing_imports = True
[mypy-pythoncom]
ignore_missing_imports = True
[mypy-snakeviz.*]
ignore_missing_imports = True
[mypy-wheel.*]
ignore_missing_imports = True
[mypy-pip_system_certs.*]
ignore_missing_imports = True