forked from Project-MONAI/MONAI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.cfg
136 lines (123 loc) · 4.46 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
[metadata]
name = monai
author = MONAI Consortium
author_email = monai.miccai2019@gmail.com
url = https://monai.io/
description = AI Toolkit for Healthcare Imaging
long_description = file:README.md
long_description_content_type = text/markdown; charset=UTF-8
platforms = OS Independent
license = Apache License 2.0
[options]
python_requires = >= 3.6
install_requires =
torch >=1.4
pytorch-ignite ==0.3.0
numpy >=1.17
nibabel
tensorboard
pillow
scipy
scikit-image >=0.14.2
[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,F403,F405,F821,F841,F999,W503,W504,C408,E302,W291,E303,
# these ignores are from flake8-bugbear; please fix!
B007,B008,
# these ignores are from flake8-comprehensions; please fix!
C400,C401,C402,C403,C404,C405,C407,C411,C413,C414,C415,C416,
# N812 lowercase 'torch.nn.functional' imported as non lowercase 'F'
N812
# suppress flake8-mypy failures occuring when MYPYPATH=${src_dir}/monai/monai
T499
# --- Temporary disabling to allow smaller PRs
# Subsequent fixes necessary to make this tool pass are not yet
# merged into the master branch, but requested as separate
# commits. Can not enable until all outstanding typehint
# PR's are approved
T484
# Unused imports may be used later, disable warning while we
# separate many PR's
F401
# ^^^^^^^^^ Temporary disabling to allow smaller PRs
per-file-ignores = __init__.py: F401
exclude = *.pyi,.git,monai/_version.py,versioneer.py
[versioneer]
VCS = git
style = pep440
versionfile_source = monai/_version.py
versionfile_build = monai/_version.py
tag_prefix =
parentdir_prefix =
[mypy]
# --- Temporary disabling to allow smaller PRs
# Subsequent fixes necessary to make this tool pass are not yet
# merged into the master branch, but requested as separate
# commits. Can not enable until all outstanding typehint
# PR's are approved
ignore_errors = True ## Temporarily disable all mypy warnings
# ^^^^^^ Temporary disabling to allow smaller PRs
# do not follow imports (except for ones found in typeshed)
follow_imports=normal
# suppress errors about unsatisfied imports
# The pytorch-ignite package is not type hinted and generates
# hundreds of failures that are not the priority to address
# at the monment. Eventually ignore_missing_imports=False
# should be used add consistent typing information to
# those parts of the MONAI package that depend on ignite.
ignore_missing_imports=True
# Temporarily ignore all site packages too
# --no_site_packages=True
# allow returning Any as a consequence of the options above
warn_return_any=True
# ensure all execution paths are returning
warn_no_return=True
# lint-style cleanliness for typing needs to be disabled; returns more errors
# than the full run.
warn_redundant_casts=True
warn_unused_ignores=False
[mypy-torch.*]
# --- Temporary disabling to allow smaller PRs
# Subsequent fixes necessary to make this tool pass are not yet
# merged into the master branch, but requested as separate
# commits. Can not enable until all outstanding typehint
# PR's are approved
ignore_errors = True ## Temporarily disable all mypy warnings
# ^^^^^^ Temporary disabling to allow smaller PRs
follow_imports = skip
follow_imports_for_stubs = True
[mypy-monai._version]
# Always ignore any type issues in teh monai/._version file
ignore_errors = True
[pytype]
# NOTE: All relative paths are relative to the location of this file.
# Space-separated list of files or directories to exclude.
exclude = **/*_test.py **/test_*.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 = False
# Run N jobs in parallel.
jobs = 8
# All pytype output goes here.
output = .pytype
# Paths to source code directories, separated by ':'.
pythonpath = .
# Python version (major.minor) of the target code.
python_version = 3.6
# Experimental: Check variable values against their annotations.
check_variable_types = False
# Comma or space separated list of error names to ignore.
disable = pyi-error
# Don't report errors.
report_errors = True
# Experimental: Infer precise return types even for invalid function calls.
precise_return = False
# Experimental: solve unknown types to label with structural types.
protocols = False
# Experimental: Only load submodules that are explicitly imported.
strict_import = False