Skip to content

Commit ec51ca0

Browse files
committed
fix: add mypy overrides for optional dependencies
1 parent ee1b5cb commit ec51ca0

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,27 @@ warn_no_return = true
3535
warn_unreachable = true
3636
files = ["src"]
3737

38+
[[tool.mypy.overrides]]
39+
module = [
40+
"tree_sitter",
41+
"tree_sitter_python",
42+
"tree_sitter_javascript",
43+
"tree_sitter_typescript",
44+
"tree_sitter_typescript.tsx",
45+
"tree_sitter_go",
46+
"tree_sitter_rust",
47+
"tree_sitter_java",
48+
"tree_sitter_c",
49+
"tree_sitter_cpp",
50+
"tree_sitter_ruby",
51+
"mistune",
52+
"pysbd",
53+
"ruamel.yaml",
54+
"lxml",
55+
"lxml.html",
56+
]
57+
ignore_missing_imports = true
58+
3859
[tool.commitizen]
3960
name = "cz_conventional_commits"
4061
tag_format = "v$version"

0 commit comments

Comments
 (0)