mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00

* Boolean naming convention * Rename no_strict_optional -> strict_optional * Update CONTRIBUTORS * Enable strict optional for aqt module * Fix errors * Enable strict optional for aqt browser * Fix layout.py errors * Fix find_duplicates.py errors * Fix browser.py errors * Revert a0 a1 names * Fix tree.py errors * Fix previewer.py errors * Fix model.py errors * Fix find_and_replace.py errors * Fix item.py errors * Fix toolbar.py errors * Fix table/__init__.py errors * Fix model.py errors * Fix state.py errors * Fix table.py errors * Fix errors in card_info.py * Fix searchbar.py errors * Fix name * Fix assert in browser.py * Formatting * Fix assert vh * assert is not None instead of truthy * Split _move_current() up to correct type signature (dae) We want either index or direction, but not both.
89 lines
2 KiB
INI
89 lines
2 KiB
INI
[mypy]
|
|
python_version = 3.9
|
|
pretty = False
|
|
strict_optional = False
|
|
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]
|
|
strict_optional = True
|
|
[mypy-aqt.browser.*]
|
|
strict_optional = True
|
|
[mypy-aqt.operations.*]
|
|
strict_optional = True
|
|
[mypy-anki.scheduler.base]
|
|
strict_optional = True
|
|
[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
|