-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathsetup.cfg
86 lines (81 loc) · 3.34 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
# Copyright (c) MONAI Consortium
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
[metadata]
name = SlicerMONAIViz
author = MONAI Consortium
author_email = [email protected]
url = https://monai.io/
description = MONAI Viz 3D-Slicer Plugin 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
license_files =
LICENSE
project_urls =
Documentation=https://docs.monai.io/
Bug Tracker=https://github.com/Project-MONAI/SlicerMONAIViz/issues
Source Code=https://github.com/Project-MONAI/SlicerMONAIViz
[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 =
torch
ninja
install_requires =
torch>=1.7
monai[nibabel, torchvision, itk]>=1.1.0
[flake8]
select = B,C,E,F,N,P,T4,W,B9
max_line_length = 120
# F403 'from module import *' used; unable to detect undefined names
# F405 Name may be undefined, or defined from star import
# E203 whitespace before ':' # incompatible with black style
# E402 module level import not at top of file
# E501 is not flexible enough, we're using B950 instead
# E722 do not use bare 'except'
# C408 ignored because we like the dict keyword argument syntax
# W503 line break before binary operator
ignore =
E203,E302,E303,E305,E402,E501,E721,E722,E741,F403,F405,F821,F841,F999,C408,W291,W503,W504,B008,
# N812 lowercase 'torch.nn.functional' imported as non lowercase 'F'
N812,N818
per_file_ignores = __init__.py: F401
exclude = *.pyi,.git,.eggs,monailabel/_version.py,versioneer.py,venv,.venv,_version.py,slicer,config.py,plugins/ohif
[isort]
known_first_party = SlicerMONAIViz
profile = black
line_length = 120
skip = .git, .eggs, venv, .venv, versioneer.py, _version.py
skip_glob = *.pyi
[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
# list of files or directories to exclude.
exclude = (plugins|docs|model|tests)