-
Notifications
You must be signed in to change notification settings - Fork 11
/
pyproject.toml
132 lines (114 loc) · 2.89 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
120
121
122
123
124
125
126
127
128
129
130
131
132
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "sigpyproc"
version = "1.2.0"
description = "Python FRB/pulsar data toolbox"
readme = "README.md"
authors = [{ name = "Ewan Barr", email = "ewan.d.barr@gmail.com" }]
maintainers = [{ name = "Pravir Kumar", email = "pravirka@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 :: 4 - Beta",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Astronomy",
]
dependencies = [
"numpy",
"numba",
"astropy",
"matplotlib",
"h5py",
"bottleneck",
"attrs",
"click",
"rich",
"rocket-fft",
"bidict",
"typing_extensions",
]
[project.urls]
Repository = "https://github.com/FRBs/sigpyproc3"
[project.optional-dependencies]
tests = [
"pytest",
"pytest-cov",
"pytest-randomly",
"pytest-sugar",
"pytest-benchmark",
"pytest-mock",
"mypy",
"scipy",
]
docs = [
"sphinx",
"sphinx-book-theme",
"sphinx-click",
"sphinx-prompt",
"sphinx-copybutton",
"numpydoc",
"myst-nb",
"jupyter_sphinx",
]
develop = ["ruff"]
[project.scripts]
spp_header = "sigpyproc.apps.spp_header:main"
spp_extract = "sigpyproc.apps.spp_extract:main"
spp_clean = "sigpyproc.apps.spp_clean:main"
[tool.ruff]
include = [
"pyproject.toml",
"sigpyproc/**/*.py",
"tests/**/*.py",
"docs/**/*.py",
]
exclude = ["sigpyproc/apps/spp_digifil.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", "D301", "ANN1", "PLR2004", "G004"]
[tool.ruff.lint.pylint]
max-args = 15
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = ["S101", "FBT", "PLR2004", "PT011", "SLF001"]
[tool.pytest.ini_options]
minversion = "8.0"
testpaths = "tests"
[tool.coverage.paths]
source = ["./sigpyproc/"]
[tool.coverage.run]
omit = ["tests/*", "docs/*", "*__init__.py"]
[tool.coverage.report]
show_missing = true
#fail_under = 85
ignore_errors = true
exclude_lines = [
'raise NotImplementedError',
'if TYPE_CHECKING:',
'except ModuleNotFoundError:',
'if __name__ == "__main__":',
'if outfile_name is None:',
]
[tool.mypy]
enable_incomplete_feature = ["Unpack"]
ignore_missing_imports = true
plugins = ["numpy.typing.mypy_plugin"]
[tool.numpydoc_validation]
checks = ["all", "GL08", "EX01", "SA01", "ES01", "RT01", "SS02"]