-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
153 lines (123 loc) · 4.33 KB
/
pyproject.toml
File metadata and controls
153 lines (123 loc) · 4.33 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
[project]
dependencies = [ "click>=8.0.0", "jinja2>=3.0.0", "pyyaml>=6.0", "requests>=2.28.0", "pandas>=1.5.0", "neuprint-python>=0.4.0", "toml>=0.10.0", "python-dotenv>=1.0.0", "pycairo>=1.20.0", "cairosvg>=2.5.0", "minify-html>=0.16.4,<0.17", "cst-lsp>=0.1.3,<0.2", "gitpython>=3.1.0",]
name = "neuview"
requires-python = ">= 3.11"
version = "2.7.10"
[[project.authors]]
name = "Frank Loesche"
email = "[email protected]"
[build-system]
build-backend = "hatchling.build"
requires = [ "hatchling",]
[project.scripts]
neuview = "neuview.cli:main"
[tool.pixi.workspace]
channels = [ "conda-forge",]
platforms = [ "linux-64", "win-64", "osx-64", "osx-arm64",]
[tool.pixi.dependencies]
python = ">=3.11"
click = "*"
jinja2 = "*"
pyyaml = "*"
requests = "*"
pandas = "*"
toml = "*"
pip = "*"
python-dotenv = "*"
gitpython = ">=3.1.45,<4"
pycairo = "*"
cairosvg = "*"
parallel = ">=20200322,<20250623"
python-lsp-server = ">=1.13.1,<2"
ruff = ">=0.12.11,<0.13"
pyprojroot = ">=0.3.0,<0.4"
psutil = ">=7.1.0,<8"
semver = ">=3.0.4,<4"
[tool.pixi.environments]
dev = [ "dev",]
[tool.pixi.tasks]
clean-output = "rm -rf output/"
pop-all = "yes pop | head -n $(find output/.queue -name '*.yaml' | wc -l) | parallel --no-notice neuview"
help = "python -m neuview --help"
version = "neuview --version"
setup-env = "cp .env.example .env && echo 'Created .env file. Please edit it and add your NEUPRINT_TOKEN.'"
fill-all = "neuview fill-queue --all"
create-list = "neuview create-list"
[tool.pytest.ini_options]
testpaths = [ "test",]
python_files = [ "test_*.py", "*_test.py",]
python_classes = [ "Test*",]
python_functions = [ "test_*",]
addopts = [ "-v", "--tb=short", "--strict-markers", "--disable-warnings",]
markers = [ "slow: marks tests as slow (deselect with '-m \"not slow\"')", "integration: marks tests as integration tests", "unit: marks tests as unit tests", "asyncio: marks tests as async tests",]
[tool.pixi.tasks.fill-type]
cmd = "neuview fill-queue{{ ' -n ' ~ neuron_type if neuron_type != '' else '' }}"
[[tool.pixi.tasks.fill-type.args]]
arg = "neuron_type"
default = ""
[tool.pixi.tasks.create-all-pages]
[[tool.pixi.tasks.create-all-pages.depends-on]]
task = "clean-output"
[[tool.pixi.tasks.create-all-pages.depends-on]]
task = "fill-all"
[[tool.pixi.tasks.create-all-pages.depends-on]]
task = "pop-all"
[[tool.pixi.tasks.create-all-pages.depends-on]]
task = "create-list"
[[tool.pixi.tasks.create-all-pages.depends-on]]
task = "increment-version"
[tool.pixi.tasks.extract-and-fill]
cmd = "python scripts/extract_and_fill.py {{ config_file }} {{ subset_category }}"
[[tool.pixi.tasks.extract-and-fill.args]]
arg = "config_file"
default = "config.yaml"
[[tool.pixi.tasks.extract-and-fill.args]]
arg = "subset_category"
default = "subset-medium"
[tool.pixi.tasks.subset-medium-no-index]
[[tool.pixi.tasks.subset-medium-no-index.depends-on]]
task = "clean-output"
[[tool.pixi.tasks.subset-medium-no-index.depends-on]]
task = "extract-and-fill"
[[tool.pixi.tasks.subset-medium-no-index.depends-on]]
task = "fill-type"
args = [ "",]
[[tool.pixi.tasks.subset-medium-no-index.depends-on]]
task = "pop-all"
[tool.pixi.tasks.subset-medium]
[[tool.pixi.tasks.subset-medium.depends-on]]
task = "subset-medium-no-index"
[[tool.pixi.tasks.subset-medium.depends-on]]
task = "create-list"
[tool.pixi.tasks.subset-small-no-index]
[[tool.pixi.tasks.subset-small-no-index.depends-on]]
task = "clean-output"
[[tool.pixi.tasks.subset-small-no-index.depends-on]]
task = "extract-and-fill"
args = [ "config.yaml", "subset-small",]
[[tool.pixi.tasks.subset-small-no-index.depends-on]]
task = "pop-all"
[tool.pixi.tasks.subset-small]
[[tool.pixi.tasks.subset-small.depends-on]]
task = "subset-small-no-index"
[[tool.pixi.tasks.subset-small.depends-on]]
task = "create-list"
[tool.pixi.tasks.increment-version]
cmd = "python scripts/increment_version.py"
[tool.pixi.pypi-dependencies.neuview]
path = "."
editable = true
[tool.pixi.feature.dev.dependencies]
pytest = "*"
pytest-cov = "*"
pytest-asyncio = ">=1.2.0,<2"
[tool.pixi.feature.dev.tasks]
test = "pytest test/"
test-verbose = "pytest -v test/"
test-coverage = "pytest --cov=src/neuview test/"
unit-test = "pytest -m unit test/"
unit-test-verbose = "pytest -m unit -v test/"
integration-test = "pytest -m integration test/"
integration-test-verbose = "pytest -m integration -v test/"
format = "ruff format src/ test/"
check = "ruff check src/ test/"