-
Notifications
You must be signed in to change notification settings - Fork 13
/
pyproject.toml
85 lines (70 loc) · 1.47 KB
/
pyproject.toml
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
[tool.poetry]
name = "ml4gw"
version = "0.6.1"
description = "Tools for training torch models on gravitational wave data"
readme = "README.md"
authors = [
"Alec Gunny <alec.gunny@ligo.org>", "Ethan Marx <emarx@mit.edu>", "Will Benoit <benoi090@umn.edu>", "Deep Chatterjee <deep1018@mit.edu"
]
[tool.poetry.dependencies]
python = "^3.8,<3.13"
jaxtyping = "^0.2"
# torch deps
torch = "^2.0"
torchaudio = "^2.0"
numpy = "<2.0.0"
[tool.poetry.group.dev.dependencies]
pre-commit = "^2.16"
pytest = "^7.0"
# need lalsuite to compute gmst in injection testing
lalsuite = "^7.0"
bilby = "^2.1"
jupyter = "^1.0.0"
gwpy = "^2.1"
# versions >= 1.9. fix issue with median calculation
# https://github.com/scipy/scipy/issues/15601
scipy = ">=1.9.0"
Sphinx = ">5.0"
sphinx-rtd-theme = "^2.0.0"
myst-parser = "^2.0.0"
sphinx-autodoc-typehints = "^2.0.0"
[tool.black]
line-length = 79
include = '\.pyi?$'
exclude = '''
/(
\.git
| \.tox
| _build
| dist
| docs
)/
'''
[tool.isort]
known_first_party = ["ml4gw"]
multi_line_output = 3
include_trailing_comma = true
[tool.tox]
legacy_tox_ini = """
[tox]
envlist = py{38,39,310,311,312}
isolated_build = true
[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311
3.12: py312
[testenv:py{38,39,310,311,312}]
deps =
pytest>=7,<8
lalsuite>=7,<8
bilby>=1.1,<2
gwpy>=3.0
numpy>=1,<2
commands = pytest tests
"""
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"