forked from mindee/doctr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
49 lines (44 loc) · 936 Bytes
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
[tool.mypy]
files = "doctr/"
show_error_codes = true
pretty = true
warn_unused_ignores = true
warn_redundant_casts = true
no_implicit_optional = true
check_untyped_defs = true
implicit_reexport = false
[[tool.mypy.overrides]]
module = [
"tensorflow.*",
"torchvision.*",
"PIL.*",
"tqdm.*",
"scipy.*",
"cv2.*",
"h5py.*",
"matplotlib.*",
"tensorflow_addons.*",
"pyclipper.*",
"shapely.*",
"tf2onnx.*",
"mplcursors.*",
"defusedxml.*",
"weasyprint.*",
"huggingface_hub.*",
"pypdfium2.*",
]
ignore_missing_imports = true
[tool.isort]
profile = "black"
line_length = 120
src_paths = ["doctr", "tests", "scripts", "references", "demo", "docs", "api"]
skip_glob = "**/__init__.py"
known_third_party = ["tensorflow", "torch", "torchvision", "wandb", "fastprogress"]
[tool.pydocstyle]
select = "D300,D301,D417"
match = ".*\\.py"
[tool.coverage.run]
source = ["doctr"]
[tool.black]
line-length = 120
target-version = ['py38']