-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
87 lines (75 loc) · 1.74 KB
/
Copy pathpyproject.toml
File metadata and controls
87 lines (75 loc) · 1.74 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
[build-system]
requires = ["hatchling<1.29", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "simpl-neuro"
dynamic = ["version"]
description = "SIMPL: Scalable and hassle-free optimisation of neural representations from behaviour"
readme = "README.md"
license = "MIT"
requires-python = ">=3.10"
authors = [
{name = "Tom George"},
]
dependencies = [
"jax",
"xarray",
"scikit-learn",
"scikit-image",
"matplotlib",
"netcdf4",
"h5netcdf",
"h5py",
]
[project.scripts]
simpl = "simpl.cli:main"
[project.optional-dependencies]
demos = [
"jupyter",
"ipympl",
]
metal = [
"jax==0.4.35",
"jaxlib==0.4.35",
"jax-metal",
]
dev = [
"pytest>=7.0",
"pytest-cov",
"ruff",
"build",
"twine",
"nbstripout",
"mkdocs-material",
"mkdocstrings[python]",
"mkdocs-include-markdown-plugin",
]
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.hooks.vcs]
version-file = "src/simpl/_version.py"
[tool.hatch.build.targets.wheel]
packages = ["src/simpl"]
[tool.ruff]
line-length = 120
target-version = "py310"
[tool.ruff.lint]
select = ["E", "F", "W", "I"]
[tool.ruff.lint.per-file-ignores]
"examples/*.ipynb" = ["F401"]
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "--cov=simpl --cov-report=term-missing"
markers = [
"docs: tests that build the documentation",
"cpu_only: force test to run on CPU (for ops unsupported on Metal: linalg.inv, cholesky, fft)",
]
filterwarnings = [
"ignore:numpy.ndarray size changed:RuntimeWarning",
"ignore:Setting the shape on a NumPy array has been deprecated in NumPy 2\\.5\\.:DeprecationWarning:xarray\\.backends\\.netCDF4_",
]
[tool.coverage.run]
source = ["simpl"]
[tool.coverage.report]
show_missing = true
fail_under = 80