-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyproject.toml
104 lines (86 loc) · 2.36 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
[build-system]
requires = ["scikit-build-core", "pybind11"]
build-backend = "scikit_build_core.build"
[project]
name = "dmtlib"
version = "0.2.0"
description = "Dispersion Measure Transform Library"
readme = "README.md"
license = { text = "MIT" }
authors = [{ name = "Pravir Kumar", email = "pravirka@gmail.com" }]
requires-python = ">=3.9"
classifiers = [
"Programming Language :: C++",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"License :: OSI Approved :: MIT License",
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Astronomy",
]
dependencies = [
"numpy",
]
[project.urls]
Github = "https://github.com/pravirkr/dmt"
[project.optional-dependencies]
tests = [
"pytest",
"pytest-cov",
"pytest-randomly",
"pytest-sugar",
"pytest-benchmark",
"mypy",
]
docs = ["sphinx", "sphinx-book-theme", "sphinx-click", "myst-nb", "breathe"]
develop = ["ruff"]
[tool.scikit-build]
cmake.version = ">=3.18"
cmake.build-type = "Release"
install.strip = false
[tool.scikit-build.cmake.define]
BUILD_PYTHON = "ON"
BUILD_TESTING = "OFF"
BUILD_DOCS = "OFF"
[tool.cibuildwheel]
test-extras = "test"
test-command = "python -m pytest {project}/tests/python -v"
test-skip = "pp* *-musllinux* *-manylinux_i686"
[tool.ruff]
include = ["pyproject.toml", "src/**/*.py"]
line-length = 88
indent-width = 4
target-version = "py39"
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
[tool.ruff.lint]
select = ["ALL"]
ignore = ["D1", "ANN1", "PLR2004"]
[tool.ruff.lint.pylint]
max-args = 10
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.pytest.ini_options]
minversion = "8.0"
testpaths = "tests/python"
[tool.coverage.run]
omit = ["tests/*", "*__init__.py", "docs/*"]
[tool.coverage.report]
show_missing = true
ignore_errors = true
#fail_under = 85
exclude_lines = ['raise AssertionError', 'raise NotImplementedError']
[tool.coverage.path]
source = "src/dmt"
[tool.gcovr]
filter = ["lib/*"]
[tool.mypy]
ignore_missing_imports = true
plugins = ["numpy.typing.mypy_plugin"]