-
Notifications
You must be signed in to change notification settings - Fork 32
/
pyproject.toml
138 lines (119 loc) · 2.69 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
[project]
name = "netneurotools"
description = "A toolbox for network neuroscience"
readme = "README.rst"
requires-python = ">=3.8"
license = {file = "LICENSE"}
keywords = ["network neuroscience", "connectomics"]
authors = [
{name = "Network Neuroscience Lab", email = "[email protected]"},
]
maintainers = [
{name = "Network Neuroscience Lab", email = "[email protected]"},
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 3 :: Only"
]
dependencies = [
"bctpy",
"numpy >=1.16",
"scipy >=1.4.0",
"matplotlib",
"scikit-learn",
"nibabel >=3.0.0",
"nilearn",
"tqdm"
]
dynamic=["version"]
[project.optional-dependencies]
doc = [
"sphinx >=2.0",
"sphinx_rtd_theme",
"sphinx-gallery"
]
pysurfer = [
"vtk",
"mayavi",
"pysurfer"
]
pyvista = [
"vtk",
"pyvista"
]
numba = [
"numba"
]
style = [
"flake8",
"ruff"
]
test = [
"coverage",
"pytest >=3.6",
"pytest-cov",
]
[project.urls]
"Homepage" = "https://github.com/netneurolab/netneurotools"
[build-system]
requires = ["setuptools", "versioneer[toml]"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
include-package-data = true
[tool.setuptools.packages.find]
include = [
"netneurotools",
"netneurotools.*"
]
[tool.setuptools.package-data]
"*" = ["*.json", "*.bib"]
[tool.setuptools.dynamic]
version = {attr = "netneurotools.__version__"}
[tool.versioneer]
VCS = "git"
style = "pep440"
versionfile_source = "netneurotools/_version.py"
versionfile_build = "netneurotools/_version.py"
tag_prefix = ""
parentdir_prefix = ""
[tool.ruff]
line-length = 88
exclude = [
"setup.py",
"versioneer.py",
"netneurotools/_version.py",
"docs/conf.py",
"examples/*",
]
target-version = "py38"
[tool.ruff.lint]
select = ["E", "F", "B", "W", "D", "NPY"]
ignore = [
"B905", # zip() without an explicit strict= parameter
# "W605", # Invalid escape sequence: latex
"NPY002", # Replace legacy `np.random` call with `np.random.Generator`
]
preview = true
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["D104", "F401"]
"test_*" = ["B011"]
"examples/*" = ["E402", "D"]
[tool.pytest.ini_options]
addopts = "--strict-markers --pyargs"
markers = [
"fetcher: mark test to fetch data from the internet",
"pyvista: mark test that requires pyvista",
"pysurfer: mark test that requires pysurfer"
]
[tool.coverage.run]
source = ["netneurotools"]
omit = [
"netneurotools/_version.py",
]
[tool.codespell]
skip = '.git,*.pdf,*.svg,versioneer.py'
# ignore-words-list = ''