-
Notifications
You must be signed in to change notification settings - Fork 3
/
pyproject.toml
220 lines (198 loc) · 4.51 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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
[project]
name = 'lacosmic'
description = 'Laplacian Cosmic Ray Identification'
readme = 'README.rst'
license = {file = 'LICENSE.rst'}
authors = [
{name = 'Larry Bradley', email = '[email protected]'},
]
keywords = [
'astronomy',
'astrophysics',
'images',
'cosmic rays',
'cosmic-ray removal',
'filtering',
]
classifiers = [
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Topic :: Scientific/Engineering :: Astronomy',
]
dynamic = ['version']
requires-python = '>=3.10'
dependencies = [
'numpy>=1.24',
'astropy>=5.1',
'scipy>=1.10',
]
[project.urls]
Homepage = 'https://github.com/larrybradley/lacosmic'
Documentation = 'https://lacosmic.readthedocs.io/en/stable/'
[project.optional-dependencies]
all = [
'matplotlib>=3.6',
]
test = [
'pytest-astropy>=0.11',
]
docs = [
'lacosmic[all]',
'sphinx',
'sphinx-astropy>=1.9',
'tomli; python_version < "3.11"',
]
[build-system]
requires = [
'setuptools>=61.2',
'setuptools_scm>=6.2',
'numpy>=2.0.0',
]
build-backend = 'setuptools.build_meta'
[tool.setuptools_scm]
write_to = 'lacosmic/version.py'
[tool.setuptools]
zip-safe = false
include-package-data = false
[tool.setuptools.packages.find]
namespaces = false
[tool.setuptools.package-data]
'lacosmic' = [
'data/*',
]
[tool.pytest.ini_options]
minversion = 7.0
testpaths = [
'lacosmic',
'docs',
]
norecursedirs = [
'docs/_build',
'extern',
]
astropy_header = true
doctest_plus = 'enabled'
text_file_format = 'rst'
addopts = [
'-ra',
'--color=yes',
'--doctest-rst',
'--strict-config',
'--strict-markers',
]
log_cli_level = 'INFO'
xfail_strict = true
remote_data_strict = true
filterwarnings = [
'error', # turn warnings into exceptions
'ignore:numpy.ndarray size changed:RuntimeWarning',
]
[tool.coverage.run]
omit = [
'lacosmic/_astropy_init*',
'lacosmic/conftest.py',
'lacosmic/*setup_package*',
'lacosmic/tests/*',
'lacosmic/*/tests/*',
'lacosmic/extern/*',
'lacosmic/version*',
'*/lacosmic/_astropy_init*',
'*/lacosmic/conftest.py',
'*/lacosmic/*setup_package*',
'*/lacosmic/tests/*',
'*/lacosmic/*/tests/*',
'*/lacosmic/extern/*',
'*/lacosmic/version*',
]
[tool.coverage.report]
exclude_lines = [
'pragma: no cover',
'except ImportError',
'raise AssertionError',
'raise NotImplementedError',
'def main\\(.*\\):',
'pragma: py{ignore_python_version}',
'def _ipython_key_completions_',
]
[tool.repo-review]
ignore = [
'MY', # ignore MyPy
'PC110', # ignore using black or ruff-format in pre-commit
'PC111', # ignore using blacken-docs in pre-commit
'PC140', # ignore using mypy in pre-commit
'PC180', # ignore using prettier in pre-commit
'PC901', # ignore using custom pre-commit update message
'PY005', # ignore having a tests/ folder
]
[tool.isort]
skip_glob = [
'lacosmic/*__init__.py*',
]
known_first_party = [
'lacosmic',
'extension_helpers',
]
use_parentheses = true
[tool.black]
force-exclude = """
(
.*
)
"""
[tool.bandit.assert_used]
skips = ['*_test.py', '*/test_*.py']
[tool.numpydoc_validation]
checks = [
'all', # report on all checks, except the below
'ES01', # missing extended summary
'EX01', # missing "Examples"
'SA01', # missing "See Also"
'SA04', # missing "See Also" description
'RT02', # only type in "Returns" section (no name)
'SS06', # single-line summary
'RT01', # do not require return type for lazy properties
]
# don't report on objects that match any of these regex;
# remember to use single quotes for regex in TOML
exclude = [
'__init__',
'\._.*', # private functions/methods
'^test_*', # test code
'^conftest.*$', # pytest configuration
]
[tool.docformatter]
wrap-summaries = 72
pre-summary-newline = true
make-summary-multi-line = true
[tool.ruff]
line-length = 79
[tool.ruff.lint.pylint]
max-statements = 130
[tool.ruff.lint]
select = ['ALL']
ignore = [
'ANN',
'COM812',
'D102',
'D200',
'D203',
'D205',
'EM101',
'FBT002',
'FIX002',
'I001',
'PLR0913',
'PTH',
'Q000',
'TRY003',
]
[tool.ruff.lint.per-file-ignores]
'__init__.py' = ['D104', 'I']
'conftest.py' = ['D103']
'docs/conf.py' = ['ERA001', 'INP001', 'TRY400']
[tool.ruff.lint.pydocstyle]
convention = 'numpy'