Skip to content

Commit cf1dd6d

Browse files
committed
fix: update pyproject and requirements for filters
1 parent 6701cd9 commit cf1dd6d

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

pyproject.toml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,22 @@ ignore_errors = true
1212
module = "DPF.filters.videos.raft_core.*"
1313
ignore_errors = true
1414

15+
[[tool.mypy.overrides]]
16+
module = "DPF.filters.videos.video_llava_filter"
17+
disable_error_code = ["import-not-found"]
18+
19+
[[tool.mypy.overrides]]
20+
module = "DPF.filters.images.llava_captioning_filter"
21+
disable_error_code = ["import-not-found"]
22+
23+
[[tool.mypy.overrides]]
24+
module = "DPF.filters.images.ocr_filter"
25+
disable_error_code = ["attr-defined", "no-untyped-call"]
26+
27+
[[tool.mypy.overrides]]
28+
module = "DPF.filters.utils.fp16_module"
29+
disable_error_code = ["attr-defined", "no-untyped-def", "no-untyped-call", "assignment"]
30+
1531
# isort setting
1632
[tool.isort]
1733
profile = "black"

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ tqdm
66
pandas
77
pandarallel
88
pytest
9+
opencv-python
910
fsspec>=2023.1.0
1011
s3fs==0.4.2
1112
py3langid

0 commit comments

Comments
 (0)