-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
91 lines (78 loc) · 2.38 KB
/
pyproject.toml
File metadata and controls
91 lines (78 loc) · 2.38 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
# https://peps.python.org/pep-0517/
# https://hatch.pypa.io/latest/config/build/
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
# https://peps.python.org/pep-0621/
[project]
name = "morphix"
description = "Trainable Morphogenesis Simulation in JAX"
readme = "README.md"
license = { text = "MIT" }
authors = [
{ name = "Jan Funke", email = "funkej@janelia.hhmi.org" },
{ name = "Morgan Schwartz", email = "schwartzm10@janelia.hhmi.org" },
]
dynamic = ["version"]
dependencies = ["jax", "equinox", "optax", "rich"]
[project.optional-dependencies]
gui = ["pygfx", "pyqt5", "umap-learn", "spatial_graph", "pillow", "ffmpegio"]
dev = ["pre-commit", "pytest", "pytest-cov", "ruff", "twine", "build"]
test = ["pytest", "pytest-cov"]
[project.urls]
homepage = "https://github.com/funkelab/morphix"
[tool.uv.sources]
spatial_graph = { git = "https://github.com/funkelab/spatial_graph", rev = "b56072d71f976e25d9cd70cb84a08caf7214c62f" }
# https://hatch.pypa.io/latest/version/
[tool.hatch.version]
path = "src/morphix/__init__.py"
# https://beta.ruff.rs/docs
[tool.ruff]
target-version = "py310"
src = ["src/morphix"]
[tool.ruff.lint]
select = [
"F", # pyflakes
"E", # pycodestyle
"I", # isort
"UP", # pyupgrade
"RUF", # ruff specific rules
"D",
]
ignore = [
"D100", # Missing docstring in public mod
"D104", # Missing docstring in public package
"D105", # Missing docstring in magic method
"D107", # Missing docstring in `__init__`
"D102", # Missing docstring in public method
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["D"]
# https://docs.pytest.org/en/6.2.x/customize.html
[tool.pytest.ini_options]
minversion = "6.0"
testpaths = ["tests"]
filterwarnings = [
"error:::morphix",
]
# https://coverage.readthedocs.io/en/6.4/config.html
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"pragma: ${PY_MAJOR_VERSION} no cover",
"if TYPE_CHECKING:",
"\\.\\.\\.",
]
[tool.mypy]
files = "src/morphix"
strict = true # feel free to relax this if it's annoying
allow_untyped_defs = true # TODO: can eventually fill out typing and remove this
# allow_untyped_calls = true # TODO: can eventually fill out typing and remove this
disallow_any_generics = false
ignore_missing_imports = true
[tool.pyright]
venvPath = "."
venv = ".venv"
pythonVersion = "3.10"