pyproject: add test/common to mypy path

This gives mypy a bit of help in finding our testing API.  Mostly, it
helps get rid of a lot of warnings like these in vim:

  # E: Cannot find implementation or library stub for module
This commit is contained in:
Allison Karlitskaya 2023-05-26 11:56:34 +02:00
parent 095e547cb8
commit 63eee8e92d
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ backend-path = ['src']
build-backend = 'build_backend'
[tool.mypy]
mypy_path = 'src/cockpit'
mypy_path = 'src/cockpit:test/common'
exclude = '_vendor'
[[tool.mypy.overrides]]
module = ["cockpit._vendor.*"]