Skip to content

Commit 1921522

Browse files
committed
Fix pyproject.toml + only test tests/
1 parent 970f821 commit 1921522

File tree

2 files changed

+8
-36
lines changed

2 files changed

+8
-36
lines changed

.github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151

5252
- name: Run tests [pytest]
5353
run: |
54-
pytest --cov --cov-report=xml:coverage.xml
54+
pytest --cov --cov-report=xml:coverage.xml tests/
5555
5656
- name: Upload coverage reports to Codecov
5757
uses: codecov/[email protected]

pyproject.toml

+7-35
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@ dependencies=[
3939
"scikit-image",
4040
"scikit-learn",
4141
"seaborn",
42+
"torch",
43+
"torchmetrics",
44+
"torchinfo",
45+
"geomstats @ git+https://github.com/geomstats/geomstats.git",
46+
"torchlens @ git+https://github.com/johnmarktaylor91/torchlens.git",
47+
"netrep @ git+https://github.com/ahwillia/netrep.git"
4248
]
4349

4450
[project.optional-dependencies]
@@ -65,11 +71,6 @@ test = [
6571
"pandas-stubs",
6672
"types-requests"
6773
]
68-
torch = [
69-
"torch",
70-
"torchmetrics",
71-
"torchinfo"
72-
]
7374

7475
dev = ["neurometry[test, lint]"]
7576
all = ["neurometry[doc, dev]",]
@@ -149,10 +150,6 @@ exclude = [
149150
[tool.pip]
150151
extra-index-url = "https://pypi.org/simple"
151152

152-
[[tool.pip.dependencies]]
153-
name = "black"
154-
version = "*"
155-
156153
[[tool.pip.dependencies]]
157154
name = "giotto-ph"
158155
version = "*"
@@ -161,22 +158,10 @@ version = "*"
161158
name = "hyperopt"
162159
version = "0.2.5"
163160

164-
[[tool.pip.dependencies]]
165-
name = "isort"
166-
version = "*"
167-
168161
[[tool.pip.dependencies]]
169162
name = "mat73"
170163
version = "*"
171164

172-
[[tool.pip.dependencies]]
173-
name = "pre-commit"
174-
version = "*"
175-
176-
[[tool.pip.dependencies]]
177-
name = "pytest"
178-
version = "*"
179-
180165
[[tool.pip.dependencies]]
181166
name = "ray[tune]"
182167
version = "*"
@@ -187,17 +172,4 @@ version = "*"
187172

188173
[[tool.pip.dependencies]]
189174
name = "mtalg"
190-
version = "*"
191-
192-
[[tool.pip.dependencies]]
193-
name = "jupyter-black"
194-
version = "*"
195-
196-
[tool.pip.dependencies.geomstats]
197-
git = "https://github.com/geomstats/geomstats.git"
198-
199-
[tool.pip.dependencies.torchlens]
200-
git = "https://github.com/johnmarktaylor91/torchlens.git"
201-
202-
[tool.pip.dependencies.netrep]
203-
git = "https://github.com/ahwillia/netrep.git"
175+
version = "*"

0 commit comments

Comments
 (0)