pyproject.toml: fix our mypy setup

This allows proper typechecking in testcases via LSP servers.

Based on d9c625814f
This commit is contained in:
Martin Pitt 2024-06-17 22:44:00 +02:00 committed by Martin Pitt
parent e73d72450b
commit 9e2eb78987

View file

@ -1,3 +1,23 @@
[tool.mypy]
follow_imports = 'silent' # https://github.com/python-lsp/pylsp-mypy/issues/81
scripts_are_modules = true # allow checking all scripts in one invocation
explicit_package_bases = true
mypy_path = 'test/common:test:bots'
exclude = [
"bots"
]
[[tool.mypy.overrides]]
ignore_missing_imports = true
module = [
# run without bots checked out
"machine.*",
"testvm",
# run without gobject-introspection
"gi.*",
]
[tool.ruff]
exclude = [
".git/",