Move mypy config into pyproject.toml. Ignore 2 remaining mypy issues

This commit is contained in:
Debanjum Singh Solanky
2023-02-16 03:33:08 -06:00
parent 7a9a811874
commit 8b293edd7c
4 changed files with 18 additions and 16 deletions

View File

@@ -72,4 +72,19 @@ dev = ["khoj-assistant[test]"]
include = ["src/khoj"]
[tool.hatch.build.targets.wheel]
packages = ["src/khoj"]
packages = ["src/khoj"]
[tool.mypy]
files = "src/khoj"
pretty = true
strict_optional = false
ignore_missing_imports = true
install_types = true
non_interactive = true
show_error_codes = true
warn_unused_ignores = true
exclude = [
"src/khoj/interface/desktop/main_window.py",
"src/khoj/interface/desktop/file_browser.py",
"src/khoj/interface/desktop/system_tray.py",
]