pyproject.toml: fix our mypy setup
This allows proper typechecking in testcases via LSP servers.
Based on d9c625814f
This commit is contained in:
parent
e73d72450b
commit
9e2eb78987
1 changed files with 20 additions and 0 deletions
|
|
@ -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]
|
[tool.ruff]
|
||||||
exclude = [
|
exclude = [
|
||||||
".git/",
|
".git/",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue