-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpyproject.toml
102 lines (91 loc) · 2.21 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
[project]
name = "difi"
dynamic = ["version"]
authors = [
{name = "Joachim Moeyens", email = "[email protected]"},
]
maintainers = [
{name = "Joachim Moeyens", email = "[email protected]"},
]
description = "Did I Find It?"
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",
"Operating System :: OS Independent",
"Programming Language :: Python",
"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 = [
"numba",
"numpy",
"pandas",
]
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[tool.pdm.build]
includes = ["src/difi/"]
[tool.pdm.version]
source = "scm"
write_to = "difi/_version.py"
write_template = "__version__ = '{}'"
[tool.pdm.scripts]
check = { composite = ["lint", "typecheck", "test"] }
format = { composite = ["black ./src/difi", "isort ./src/difi"] }
lint = { composite = [
"ruff check ./src/difi",
"black --check ./src/difi",
"isort --check-only ./src/difi",
] }
fix = "ruff ./src/difi --fix"
typecheck = "mypy --strict ./src/difi"
test = "pytest --benchmark-disable {args}"
doctest = "pytest --doctest-plus --doctest-only"
benchmark = "pytest --benchmark-only"
coverage = "pytest --cov=difi --cov-report=xml"
[project.urls]
"Documentation" = "https://github.com/moeyensj/difi#README.md"
"Issues" = "https://github.com/moeyensj/difi/issues"
"Source" = "https://github.com/moeyensj/difi"
[project.optional-dependencies]
dev = [
"black",
"ipython",
"isort",
"mypy",
"pdm",
"pytest-benchmark",
"pytest-cov",
"pytest-doctestplus",
"pytest-mock",
"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