forked from deepdoctection/deepdoctection
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.cfg
108 lines (85 loc) · 2.51 KB
/
setup.cfg
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
################### ISORT #########################################
[isort]
multi_line_output=3
include_trailing_comma=True
force_grid_wrap=0
use_parentheses=True
ensure_newline_before_comments = True
line_length=120
################### PYLINT #########################################
[pylint.MASTER]
disable=
R0801, # Similar lines in 2 files
W0201, # attribute-defined-outside-init
R1710, # inconsistent-return-statements
W0401, # wildcard-import
W0614, # unused-wildcard-import
R0401, # cyclic import
W0511, # fixme
E1120, # no-value-for-parameter (because it does not work properly with the ubiquitous curry decorator
E1205, # logging-too-many-args
# extension-pkg-whitelist=cv2 compare with opencv-python issue #824
[pylint.TYPECHECK]
generated-members=torch.*
ignored-modules=torch, transformers, detectron2, boto3, cv2
[pylint.FORMAT]
max-module-lines=2500
max-line-length=120
good-names=x,y,k,n,dp,df,el,ex,cx,cy,w,h,l,i,rs,cs,p6,H1,H2,H3,B1,B2,B3,B1_proposal,B2_proposal,GroupNorm,c2,c3,c4,c5,G,q
[pylint.DESIGN]
max-args=16
max-branches=40
max-attributes=18
max-locals=44
max-returns=8
max-statements=100
max-public-methods=30
min-public-methods=1
max-nested-blocks=8
[pylint.MISCELLANEOUS]
unsafe-load-any-extension=y # https://pylint.pycqa.org/en/2.6/technical_reference/c_extensions.html that is esp. needed
# for lxml
[MESSAGES CONTROL]
enable=useless-suppression
################### MYPY #########################################
[mypy]
check_untyped_defs = True
no_implicit_optional = True
warn_unused_configs = True
disallow_any_generics = True
disallow_untyped_calls = False
disallow_untyped_defs = True
disallow_incomplete_defs = True
warn_redundant_casts = True
warn_unused_ignores = True
no_implicit_reexport = False
plugins = numpy.typing.mypy_plugin
[pydantic-mypy]
init_forbid_extra = True
init_typed = True
warn_required_dynamic_aliases = True
warn_untyped_fields = True
[mypy-tensorpack.*]
ignore_missing_imports = True
[mypy-pycocotools.*]
ignore_missing_imports = True
[mypy-cv2]
ignore_missing_imports = True
[mypy-torch]
ignore_missing_imports = True
[mypy-detectron2.*]
ignore_missing_imports = True
[mypy-doctr.*]
ignore_missing_imports = True
[mypy-jdeskew.*]
ignore_missing_imports = True
[mypy-deepdoctection.extern.tp.*]
ignore_errors = True
[mypy-pdfplumber.*]
ignore_missing_imports = True
[mypy-transformers.*]
ignore_missing_imports = True
follow_imports = skip
################### PYTEST #########################################
[tool:pytest]
addopts = -p no:warnings