-
Notifications
You must be signed in to change notification settings - Fork 14
/
pyproject.toml
119 lines (107 loc) · 2.88 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
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
[project]
name = "thor"
dynamic = ["version"]
authors = [
{ name = "Joachim Moeyens", email = "[email protected]" },
{ name = "Mario Juric", email = "[email protected]" },
{ name = "Spencer Nelson", email = "[email protected]" },
{ name = "Alec Koumjian", email = "[email protected]" },
]
description = "Tracklet-less Heliocentric Orbit Recovery"
readme = "README.md"
license = { file = "LICENSE.md" }
requires-python = ">=3.10"
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Astronomy",
"Topic :: Scientific/Engineering :: Physics",
]
keywords = ["astronomy", "astrophysics", "space", "science", "asteroids", "comets", "solar system"]
dependencies = [
"adam-core>=0.2.5",
"adam-pyoorb@git+https://github.com/B612-Asteroid-Institute/adam-pyoorb.git@main#egg=adam-pyoorb",
"astropy>=5.3.1",
"astroquery",
"difi",
"healpy",
"jax",
"numpy",
"numba",
"pandas",
"psutil",
"pyarrow>=14.0.0",
"pydantic<2.0.0",
"pyyaml>=5.1",
"quivr",
"ray[default]",
"scikit-learn",
"scipy",
"spiceypy",
]
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[tool.pdm.build]
includes = ["src/thor/"]
[tool.pdm.version]
source = "scm"
write_to = "thor/_version.py"
write_template = "__version__ = '{}'"
[tool.pdm.scripts]
check = { composite = ["lint", "typecheck", "test"] }
format = { composite = ["black ./src/thor", "isort ./src/thor"] }
lint = { composite = [
"ruff check ./src/thor",
"black --check ./src/thor",
"isort --check-only ./src/thor",
] }
fix = "ruff ./src/thor --fix"
typecheck = "mypy --strict ./src/thor"
test = "pytest --benchmark-disable {args}"
doctest = "pytest --doctest-plus --doctest-only"
benchmark = "pytest --benchmark-only"
coverage = "pytest --cov=thor --cov-report=xml"
[project.urls]
"Documentation" = "https://github.com/moeyensj/thor#README.md"
"Issues" = "https://github.com/moeyensj/thor/issues"
"Source" = "https://github.com/moeyensj/thor"
[project.optional-dependencies]
dev = [
"black",
"ipython",
"matplotlib",
"isort",
"mypy",
"pdm",
"pytest-benchmark",
"pytest-cov",
"pytest-doctestplus",
"pytest-mock",
"pytest-memray",
"pytest",
"ruff",
]
[tool.black]
line-length = 110
[tool.isort]
profile = "black"
[tool.ruff]
line-length = 110
target-version = "py311"
lint.ignore = []
exclude = ["build"]
[tool.mypy]
ignore_missing_imports = true
[tool.pytest.ini_options]
python_functions = "test_*"
addopts = "-m 'not (integration or memory)'"
markers = [
"integration: Mark a test as an integration test.",
"memory: Mark a test as a memory test."
]