-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathpyproject.toml
More file actions
185 lines (170 loc) · 4.17 KB
/
pyproject.toml
File metadata and controls
185 lines (170 loc) · 4.17 KB
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
180
181
182
183
184
185
[build-system]
requires = ['setuptools >= 61.0.0']
build-backend = 'setuptools.build_meta'
[project]
name = 'whippersnappy'
version = '2.2.0-dev'
description = 'A package to plot and capture publication-ready surfaces with overlays, for example, FastSurfer/FreeSurfer brain data.'
readme = 'README.md'
license = 'MIT'
license-files = ['LICENSE']
requires-python = '>=3.10'
authors = [
{name = 'Martin Reuter', email = 'martin.reuter@dzne.de'},
]
maintainers = [
{name = 'Martin Reuter', email = 'martin.reuter@dzne.de'},
]
keywords = [
'python',
'FreeSurfer',
'Brain MRI',
'Cortical Surface',
]
classifiers = [
'Operating System :: Microsoft :: Windows',
'Operating System :: Unix',
'Operating System :: MacOS',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
'Natural Language :: English',
'Intended Audience :: Science/Research',
]
dependencies = [
'glfw',
'numpy>=1.21',
'pyrr',
'pillow>=9.1',
'pyopengl>=3.1.8',
'nibabel',
'psutil'
]
[project.optional-dependencies]
build = [
'build',
'twine',
]
doc = [
'furo!=2023.8.17',
'matplotlib',
'memory-profiler',
'myst-parser',
'numpydoc',
'sphinx!=7.2.*',
'sphinxcontrib-bibtex',
'sphinx-copybutton',
'sphinx-design',
'sphinx-issues',
'pypandoc',
'nbsphinx',
'IPython', # For syntax highlighting in notebooks
'ipykernel',
# Needed to execute the tutorial notebook via nbsphinx:
'pooch>=1.6',
'pythreejs',
'ipywidgets',
'imageio>=2.28',
]
notebook = [
'pythreejs', # Three.js for interactive 3D (works in all Jupyter environments)
'ipywidgets', # Required for pythreejs
'pooch>=1.6',
]
gui = [
'PyQt6',
]
video = [
'imageio>=2.28',
'imageio-ffmpeg>=0.4.9', # bundles its own ffmpeg binary
]
style = [
'bibclean',
'codespell',
'pydocstyle[toml]',
'ruff',
]
test = [
'pytest',
'pytest-cov',
'pytest-timeout',
]
all = [
'whippersnappy[build]',
'whippersnappy[doc]',
'whippersnappy[style]',
'whippersnappy[test]',
'whippersnappy[notebook]',
'whippersnappy[gui]',
'whippersnappy[video]',
]
full = [
'whippersnappy[all]',
]
[project.urls]
homepage = 'https://github.com/Deep-MI/WhipperSnapPy'
documentation = 'https://github.com/Deep-MI/WhipperSnapPy'
source = 'https://github.com/Deep-MI/WhipperSnapPy'
tracker = 'https://github.com/Deep-MI/WhipperSnapPy/issues'
[project.scripts]
whippersnap = 'whippersnappy.cli.whippersnap:run'
whippersnap1 = 'whippersnappy.cli.whippersnap1:run'
whippersnap4 = 'whippersnappy.cli.whippersnap4:run'
whippersnappy-sys_info = 'whippersnappy.commands.sys_info:run'
[tool.setuptools]
include-package-data = true
[tool.setuptools.packages.find]
include = ['whippersnappy*']
exclude = ['whippersnappy*tests']
[tool.setuptools.package-data]
whippersnappy = ['resources/fonts/*.ttf']
[tool.pydocstyle]
convention = 'numpy'
ignore-decorators = '(copy_doc|property|.*setter|.*getter|pyqtSlot|Slot)'
match = '^(?!setup|__init__|test_).*\.py'
match-dir = '^whippersnappy.*'
add_ignore = 'D100,D104,D107'
[tool.ruff]
line-length = 120
extend-exclude = [
"doc",
"setup.py",
]
[tool.ruff.lint]
# https://docs.astral.sh/ruff/linter/#rule-selection
select = [
"E", # pycodestyle
"F", # Pyflakes
"UP", # pyupgrade
"B", # flake8-bugbear
"I", # isort
# "SIM", # flake8-simplify
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
[tool.codespell]
ignore-words-list = 'aNormal,wheight,renderD'
check-filenames = true
check-hidden = true
skip = './.git,./build,./.mypy_cache,./.pytest_cache'
[tool.pytest.ini_options]
minversion = '6.0'
addopts = '--durations 20 --junit-xml=junit-results.xml --verbose'
filterwarnings = []
[tool.coverage.run]
branch = true
cover_pylib = false
omit = [
'**/__init__.py',
'**/whippersnappy/_version.py',
'**/whippersnappy/commands/*',
'**/tests/**',
]
[tool.coverage.report]
exclude_lines = [
'pragma: no cover',
'if __name__ == .__main__.:',
]
precision = 2