forked from Project-MONAI/monai-deploy-app-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.cfg
179 lines (165 loc) · 5.56 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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
[metadata]
name = monai-deploy-app-sdk
author = MONAI Consortium
author_email = [email protected]
url = https://monai.io/
description = A framework and associated tools to design, verify and analyze performance of MONAI apps
long_description = file:README.md
long_description_content_type = text/markdown; charset=UTF-8
platforms = OS Independent
license = Apache License 2.0
license_files =
LICENSE
project_urls =
Documentation=https://docs.monai.io/projects/monai-deploy-app-sdk/en/latest/
Bug Tracker=https://github.com/Project-MONAI/monai-deploy-app-sdk/issues
Source Code=https://github.com/Project-MONAI/monai-deploy-app-sdk
[options]
python_requires = >= 3.7
# for compiling and develop setup only
# no need to specify the versions so that we could
# compile for multiple targeted versions.
# setup_requires =
# cucim
install_requires =
numpy>=1.21.2 # CVE-2021-33430
networkx>=2.4
colorama>=0.4.1
typeguard>=2.12.1
[options.extras_require]
all =
cucim~=21.06
cucim =
cucim~=21.06
[flake8]
select = B,C,E,F,N,P,T4,W,B9
max_line_length = 120
# C408 ignored because we like the dict keyword argument syntax
# E501 is not flexible enough, we're using B950 instead
ignore =
E203,E305,E402,E501,E721,E741,F821,F841,F999,W503,W504,C408,E302,W291,E303,
# N812 lowercase 'torch.nn.functional' imported as non lowercase 'F'
N812,
B024, #abstract base class, but it has no abstract methods
B027 #method in base class with no implementation
per_file_ignores =
__init__.py: F401
# Allow using camel case for variable/argument names for the sake of readability.
# 43 warnings with N803(2) N806(41) in dicom_seg_writer_operator.py
dicom_seg_writer_operator.py: N803, N806
#Allow function names (@property) who are not lowercase for standards compliance and readability.
# 30 warnings with N802 in dicom_study.py
dicom_study.py: N802
dicom_series.py:N802
exclude = *.pyi,.git,.eggs,monai/deploy/_version.py,dist,versioneer.py,venv,.venv,_version.py
[isort]
known_first_party = monai
profile = black
line_length = 120
skip = .git, .eggs, venv, .venv, versioneer.py, _version.py, conf.py, dist
skip_glob = *.pyi
[versioneer]
VCS = git
style = pep440
versionfile_source = monai/deploy/_version.py
versionfile_build = monai/deploy/_version.py
tag_prefix =
parentdir_prefix =
[mypy]
# Suppresses error messages about imports that cannot be resolved.
ignore_missing_imports = True
# Changes the treatment of arguments with a default value of None by not implicitly making their type Optional.
no_implicit_optional = True
# Warns about casting an expression to its inferred type.
warn_redundant_casts = True
# No error on unneeded # type: ignore comments.
warn_unused_ignores = False
# Shows a warning when returning a value with type Any from a function declared with a non-Any return type.
warn_return_any = True
# Prohibit equality checks, identity checks, and container checks between non-overlapping types.
strict_equality = True
# Shows column numbers in error messages.
show_column_numbers = True
# Shows error codes in error messages.
show_error_codes = True
# Use visually nicer output in error messages: use soft word wrap, show source code snippets, and show error location markers.
pretty = False
# Exclude certail files/folders
exclude = (dist|notebooks)/$
[mypy-versioneer]
# Ignores all non-fatal errors.
ignore_errors = True
[mypy-*._version]
# Ignores all non-fatal errors.
ignore_errors = True
[mypy-monai.eggs]
# Ignores all non-fatal errors.
ignore_errors = True
[pytype]
# Space-separated list of files or directories to exclude.
exclude = versioneer.py _version.py
# Space-separated list of files or directories to process.
inputs = monai
# Keep going past errors to analyze as many files as possible.
keep_going = True
# Run N jobs in parallel.
jobs = 8
# All pytype output goes here.
output = .pytype
# Paths to source code directories, separated by ':'.
pythonpath = .
# Check attribute values against their annotations.
check_attribute_types = True
# Check container mutations against their annotations.
check_container_types = True
# Check parameter defaults and assignments against their annotations.
check_parameter_types = True
# Check variable values against their annotations.
check_variable_types = True
# Comma or space separated list of error names to ignore.
disable = pyi-error
# Report errors.
report_errors = True
# Experimental: Infer precise return types even for invalid function calls.
precise_return = True
# Experimental: solve unknown types to label with structural types.
protocols = True
# Experimental: Only load submodules that are explicitly imported.
strict_import = False
[tool:pytest]
# If a pytest section is found in one of the possible config files
# (pytest.ini, tox.ini or setup.cfg), then pytest will not look for any others,
# so if you add a pytest config section elsewhere,
# you will need to delete this section from setup.cfg.
norecursedirs =
migrations
python_files =
test_*.py
*_test.py
tests.py
# PytestDeprecationWarning: The --strict option is deprecated, use --strict-markers instead.
addopts =
-ra
--strict-markers
# --doctest-modules
# --doctest-glob=\*.rst
--tb=short
--ignore-glob build
testpaths =
tests
[coverage:run]
concurrency = multiprocessing
source = .
data_file = .coverage/.coverage
omit = setup.py
[coverage:report]
exclude_lines =
pragma: no cover
if TYPE_CHECKING:
# Don't complain if tests don't hit code:
raise NotImplementedError
if __name__ == .__main__.:
show_missing = True
skip_covered = True
[coverage:xml]
output = coverage.xml