Skip to content

Commit

Permalink
mypy: Ignore external modules without annotations
Browse files Browse the repository at this point in the history
These are imported in scripts in src/ and pkg/, which we will soon start
covering.
  • Loading branch information
martinpitt authored and allisonkarlitskaya committed Nov 2, 2023
1 parent 228c5e4 commit 9fa8581
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ build-backend = 'build_backend'
mypy_path = 'src:test/common'
exclude = '_vendor'
[[tool.mypy.overrides]]
module = ["cockpit._vendor.*"]
module = ["cockpit._vendor.*", "dbus", "gi.*", "task", "vdo.*"]
follow_imports = 'silent'
ignore_missing_imports = true

[tool.pylint]
max-line-length = 118
Expand Down

0 comments on commit 9fa8581

Please sign in to comment.