-
Notifications
You must be signed in to change notification settings - Fork 287
/
pyproject.toml
99 lines (93 loc) · 2.11 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
[project]
name = "InVesalius"
version = "3.1.99998"
description = "3D medical imaging reconstruction software"
keywords = [
"medical imaging",
"dicom",
"segmentation",
"3D printing",
"neuronavigation",
]
license = { file = "LICENSE.txt" }
readme = "README.md"
requires-python = ">=3.8"
[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"