-
Notifications
You must be signed in to change notification settings - Fork 3
/
pyproject.toml
148 lines (134 loc) · 3.04 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
[project]
name = 'lacosmic'
description = 'Laplacian Cosmic Ray Identification'
readme = 'README.rst'
license = {file = 'LICENSE.rst'}
authors = [
{name = 'Larry Bradley', email = 'larry.bradley@gmail.com'},
]
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.9'
dependencies = [
'numpy>=1.22',
'astropy>=5.0',
'scipy>=1.7.2',
]
[project.urls]
Homepage = 'https://github.com/larrybradley/lacosmic'
Documentation = 'https://lacosmic.readthedocs.io/en/stable/'
[project.optional-dependencies]
all = [
'matplotlib>=3.5',
]
test = [
'pytest-astropy>=0.10',
]
docs = [
'lacosmic[all]',
'sphinx',
'sphinx-astropy>=1.6',
'tomli; python_version < "3.11"',
]
[build-system]
requires = [
'setuptools>=61.2',
'setuptools_scm>=6.2',
]
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 = '--color=yes --doctest-rst'
xfail_strict = true
remote_data_strict = true
filterwarnings = [
'error', # turn warnings into exceptions
'ignore:numpy.ufunc size changed:RuntimeWarning',
'ignore:numpy.ndarray size changed:RuntimeWarning',
# python 3.12 deprecation in matplotlib 3.9dev
'ignore:datetime.datetime.utcfromtimestamp\(\) is deprecated:DeprecationWarning',
]
[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.build-sphinx]
github_project = 'spacetelescope/lacosmic'
[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']