-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
executable file
·95 lines (81 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
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "kalman_detector"
version = "0.5.0"
description = "Detecting Fast Radio Bursts with Spectral Structures"
readme = "README.md"
authors = [
{ name = "Pravir Kumar", email = "pravirka@gmail.com" },
{ name = "Barak Zackay", email = "bzackay@gmail.com" },
]
requires-python = ">=3.9"
classifiers = [
"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 :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Astronomy",
]
dependencies = [
"numpy",
"numba",
"scipy",
"matplotlib",
"rich",
"sympy",
"uncertainties",
"typing_extensions",
]
[project.urls]
Repository = "https://github.com/pravirkr/kalman_detector"
[project.optional-dependencies]
tests = ["pytest", "pytest-cov", "pytest-randomly", "pytest-sugar", "mypy"]
docs = ["sphinx", "sphinx-book-theme", "sphinx-click", "myst-nb"]
develop = ["ruff"]
[tool.ruff]
include = ["pyproject.toml", "kalman_detector/**/*.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", "G004"]
[tool.ruff.lint.pylint]
max-args = 10
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.ruff.lint.per-file-ignores]
"kalman_detector/svm.py" = ["N806"]
"tests/*.py" = ["S101", "FBT", "PLR2004", "PT011", "SLF001", "N806"]
[tool.pytest.ini_options]
minversion = "8.0"
testpaths = "tests"
[tool.coverage.paths]
source = ["./kalman_detector/"]
[tool.coverage.run]
omit = ["tests/*", "docs/*", "*__init__.py", "kalman_detector/efficiency.py"]
[tool.coverage.report]
show_missing = true
#fail_under = 85
ignore_errors = true
exclude_lines = [
'raise NotImplementedError',
'if TYPE_CHECKING:',
'if __name__ == "__main__":',
'if outfile_name is None:',
]
[tool.mypy]
ignore_missing_imports = true
plugins = ["numpy.typing.mypy_plugin"]