-
Notifications
You must be signed in to change notification settings - Fork 312
/
Copy pathpyproject.toml
159 lines (140 loc) · 3.36 KB
/
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
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
[project]
name = "InVesalius"
version = "3.1.99998"
description = "3D medical imaging reconstruction software"
keywords = [
"medical imaging",
"dicom",
"segmentation",
"3D printing",
"neuronavigation",
]
dependencies = [
"cython==3.0.10",
"h5py==3.11.0",
"imageio==2.34.2",
"matplotlib==3.9.0",
"nibabel==5.2.1",
"numpy==1.26.4",
"optitrack ; python_full_version == '3.8.*' and sys_platform == 'windows'",
"pillow==10.3.0",
"plaidml-keras==0.7.0 ; python_full_version < '3.9'",
"psutil==6.0.0",
"pyacvd==0.2.11",
"pyclaron ; python_full_version == '3.8.*' and sys_platform == 'windows'",
"pypubsub==4.0.3",
"pyserial==3.5",
"python-gdcm==3.0.24",
"scikit-image==0.24.0",
"scipy==1.14.0",
"setuptools-scm",
"torch==2.3.1",
"vtk==9.3.0",
"wxpython==4.2.1",
]
license = { file = "LICENSE.txt" }
readme = "README.md"
requires-python = ">=3.10"
[dependency-groups]
dev = [
"aioconsole==0.7.1",
"mido==1.2.10",
"mypy==1.10.1",
"nest-asyncio==1.6.0",
"pre-commit~=3.7.1",
"python-rtmidi==1.5.8",
"python-socketio[client]==5.11.3",
"requests==2.32.3",
"ruff~=0.5.0",
"scikit-learn==1.5.0",
"uvicorn[standard]==0.30.1",
"scikit-build-core",
]
[project.gui-scripts]
inv = 'invesalius.app:main'
[build-system]
requires = ["scikit-build-core", "cython >= 3.0.2", "numpy >= 1.26.4"]
build-backend = "scikit_build_core.build"
[tool.scikit-build]
experimental = true
wheel.packages = ["invesalius","invesalius_cy"]
editable.mode = "inplace"
[tool.setuptools]
packages = ["invesalius","invesalius_cy"]
[tool.mypy]
mypy_path = "typings"
show_error_codes = true
check_untyped_defs = false
disallow_any_generics = false
disallow_incomplete_defs = false
disallow_untyped_defs = false
warn_redundant_casts = false
warn_unused_ignores = false
no_implicit_optional = false
strict_equality = false
warn_return_any = false
warn_unreachable = false
warn_unused_configs = false
no_implicit_reexport = false
follow_imports = "skip" # change to normal later
explicit_package_bases = true
disable_error_code = ["attr-defined", "no-redef"]
[[tool.mypy.overrides]]
module = 'wx.*'
disable_error_code = ["no-redef"] # because some classes are redefined in the stubs
[[tool.mypy.overrides]]
module = [
'wx.*',
'vtkmodules.*',
'pubsub.*',
'scipy.*',
'skimage.*',
'serial.*',
'gdcm.*',
'pyacvd.*',
'vtk.*',
'scipy.spatial.*',
'invesalius.data.camera_tracker.*',
'aioconsole.*',
'nest_asyncio.*',
'uvicorn.*',
'polhemus.*',
'polhemusFT.*',
'pyclaron.*',
'urllib2.*',
'optitrack.*',
'ordereddict.*',
'keras.*',
'Image.*',
'mido.*',
'ConfigParser.*',
'Queue.*',
'weakrefmethod.*',
'torchviz.*',
'Trekker.*',
'sklearn.*',
'usb.*',
'plaidml.*',
'pypolaris.*',
'pypolarisP4.*',
'socketio.*',
'setuptools.*',
'psutil.*',
'h5py.*',
'info.*',
'pandas.*',
'PIL.*',
'win32com.client.*',
'win32com.*',
'sigar.*',
]
ignore_missing_imports = true
[tool.ruff]
include = ["pyproject.toml", "invesalius/**/*.py",'setup.py','app.py',"typings/**/*.pyi"]
line-length = 100
# extend-exclude = ["plugins"]
[tool.ruff.lint]
extend-select = ["UP","I"] # Introduces linting rules for pyupgrade and isort
extend-ignore = ["E731"]
[tool.ruff.format]
line-ending = "lf"