-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
116 lines (99 loc) · 2.72 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
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[project]
name = "precovery"
requires-python = ">=3.11,<3.13"
dynamic = ["version"]
authors = [
{ name = "Kathleen Kiker", email = "[email protected]" },
{ name = "Alec Koumjian", email = "[email protected]" },
{ name = "Joachim Moeyens", email = "[email protected]" },
{ name = "Spencer Nelson", email = "[email protected]" },
{ name = "Nate Tellis", email = "[email protected]" },
]
description = "Fast asteroid precovery at scale"
readme = "README.md"
license = { file = "LICENSE.md"}
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.10",
"Topic :: Scientific/Engineering :: Astronomy",
"Topic :: Scientific/Engineering :: Physics",
]
dependencies = [
"numpy",
"numba",
"sqlalchemy",
"regex",
"pandas",
"healpy",
"requests",
"adam-core>=0.3.1",
]
[dependency-groups]
test = [
"adam-assist>=0.2.0",
"pytest",
"black",
"isort",
"mypy",
"pytest-cov",
"pytest-benchmark",
"pytest-doctestplus",
"ruff",
"astroquery",
"pytest-mock>=3.14.0",
"snakeviz>=2.2.2",
]
[project.urls]
"Homepage" = "https://github.com/b612-asteroid-institute/precovery"
[project.scripts]
precovery-index = "precovery.ingest:index"
[tool.pdm.version]
source = "scm"
write_to = "precovery/_version.py"
write_template = '__version__ = "{}"'
[tool.pdm.scripts]
check = { composite = ["lint", "typecheck"] }
format = { composite = ["black ./precovery", "isort ./precovery"] }
lint = { composite = [
"ruff check ./precovery",
"black --check ./precovery",
"isort --check-only ./precovery",
] }
fix = "ruff check ./precovery --fix"
typecheck = "mypy ./precovery"
test = "pytest --benchmark-skip -m 'not profile' {args}"
doctest = "pytest --doctest-plus --doctest-only"
benchmark = "pytest --benchmark-only {args}"
coverage = "pytest --benchmark-skip --cov=precovery --cov-report=xml -m 'not profile' {args}"
profile = "pytest -s -m 'profile' {args}"
[tool.pdm]
distribution = true
[tool.black]
line-length = 88
[tool.flake8]
line-length = 88
[tool.isort]
profile = "black"
[tool.mypy]
exclude = "virtualenv*"
plugins = ["numpy.typing.mypy_plugin", "sqlalchemy.ext.mypy.plugin"]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "numba"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "healpy"
ignore_missing_imports = true
[tool.pytest]
filterwarnings = "ignore::DeprecationWarning:astropy"
[tool.ruff]
line-length = 110
target-version = "py311"
lint.ignore = []
exclude = ["build"]