-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
134 lines (119 loc) · 3.22 KB
/
Copy pathpyproject.toml
File metadata and controls
134 lines (119 loc) · 3.22 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
[project]
name = "ngtools-pyodide"
authors = [{name = "Yael Balbastre", email = "y.balbastre@ucl.ac.uk"}]
maintainers = [{name = "Yael Balbastre", email = "y.balbastre@ucl.ac.uk"}]
description = "Build and manipulate Neuroglancer scenes"
readme = "README.md"
license-files = ["LICENSE"]
classifiers = [
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Medical Science Apps.",
"Topic :: Scientific/Engineering :: Visualization"
]
requires-python = ">=3.10"
dependencies = [
# "numpy >= 1.20", # // np.typing
"fsspec[full] >= 2021.0.0", # // first stable release
"cryptography >= 36.0.2", # // from boto3, see issue #32
"universal_pathlib", # UPath
# "nibabel", # io nifti
"tifffile", # io tiff
# neuroglancer dependencies:
"atomicwrites>=1.4.1",
"google-apitools>=0.5.32",
"google-auth>=2.38.0",
"numpy>=1.11.0",
"pillow>=3.2.0",
"requests>=2.32.3",
# nitransforms dependencies:
"numpy", # >= 2.1
"scipy >= 1.8",
"nibabel >= 5.2",
]
dynamic = ["version"]
[project.urls]
Homepage = "https://github.com/neuroscales/ngtools-pyodide"
Issues = "https://github.com/neuroscales/ngtools-pyodide/issues"
[project.scripts]
nglocal = "ngtools.local.cli:main"
ngtools = "ngtools.local.cli:main"
neuroglancer = "ngtools.local.cli:main"
[build-system]
requires = [
"setuptools >= 61.0",
"wheel",
"versioningit >= 1.0",
]
build-backend = "setuptools.build_meta"
[tool.setuptools]
package-dir = {"" = "src"}
[tool.versioningit]
default-version = "0+unknown"
[tool.versioningit.format]
# Same format as versioneer
distance = "{base_version}+{distance}.{vcs}{rev}"
dirty = "{base_version}+{distance}.{vcs}{rev}.dirty"
distance-dirty = "{base_version}+{distance}.{vcs}{rev}.dirty"
[tool.versioningit.write]
file = "src/ngtools/_version.py"
[tool.pytest.ini_options]
pythonpath = [
"src"
]
testpaths = [
"src/ngtools/tests"
]
[tool.mypy]
ignore_missing_imports = true
[tool.ruff]
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".mypy_cache",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv"
]
line-length = 88
indent-width = 4
src = ["."]
target-version = "py310"
[tool.ruff.lint]
select = ["ANN", "D", "E", "F", "I"]
ignore = [
"ANN002", # args should not be annotated
"ANN003", # kwargs should not be annotated
"ANN101", # self should not be annotated.
"ANN102", # cls should not be annotated.
"D105", # Missing docstring in magic method
"D205" # 1 blank line required between summary line and description -> triggered in __init__ docstrings
]
fixable = ["ALL"]
unfixable = []
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.ruff.lint.per-file-ignores]
"ngtools/tests/*.py" = []
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"