-
-
Notifications
You must be signed in to change notification settings - Fork 67
/
pyproject.toml
191 lines (171 loc) · 5.02 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
[project]
name = "reproject"
authors = [
{name = "Thomas Robitaille", email = "thomas.robitaille@gmail.com"},
{name = "Christoph Deil"},
{name = "Adam Ginsburg"},
]
license = {text = "BSD 3-Clause"}
description = "Reproject astronomical images"
urls = {Homepage = "https://reproject.readthedocs.io"}
requires-python = ">=3.10"
dependencies = [
"numpy>=1.23",
"astropy>=5.0",
"astropy-healpix>=1.0",
"scipy>=1.9",
"dask[array]>=2021.8",
"cloudpickle",
"zarr",
"fsspec",
]
dynamic = ["version"]
[project.readme]
file = "README.rst"
content-type = "text/x-rst"
[project.optional-dependencies]
all = ["shapely"]
test = [
"pytest-astropy",
]
testall = [
"shapely>=2.0.2", # 2.0.2 fixed a bug that causes changes in test results
"sunpy[map]>=6.0.1",
"asdf",
"gwcs",
"pyvo",
]
docs = [
"sphinx-astropy",
"pyvo",
"matplotlib",
]
[build-system]
requires = ["setuptools",
"setuptools_scm",
"extension-helpers==1.*",
"numpy>=2.0.0rc1",
"cython>=3.0,<3.1"]
build-backend = 'setuptools.build_meta'
[tool.setuptools]
zip-safe = false
license-files = ["LICENSE"]
include-package-data = false
[tool.setuptools.packages]
find = {namespaces = false}
[tool.setuptools.package-data]
"reproject.healpix.tests" = ["data/*"]
"reproject.adaptive.tests" = ["reference/*"]
"reproject.interpolation.tests" = ["reference/*"]
"reproject.mosaicking.tests" = ["reference/*"]
"reproject.spherical_intersect" = ["overlapArea.h", "reproject_slice_c.h", "mNaN.h"]
"reproject.tests" = ["data/*"]
[tool.extension-helpers]
use_extension_helpers = "true"
[tool.pytest.ini_options]
minversion = "6"
log_cli_level = "INFO"
xfail_strict = true
testpaths = ['"reproject"', '"docs"']
norecursedirs = ["build", "docs/_build"]
astropy_header = true
doctest_plus = "enabled"
text_file_format = "rst"
addopts = ["-ra", "--strict-config", "--strict-markers", "--doctest-rst", "--arraydiff", "--arraydiff-default-format=fits", "--doctest-ignore-import-errors"]
filterwarnings = [
"error",
'ignore:numpy\.ufunc size changed:RuntimeWarning',
'ignore:numpy\.ndarray size changed:RuntimeWarning',
"ignore:distutils Version classes are deprecated:DeprecationWarning",
"ignore:No observer defined on WCS:astropy.utils.exceptions.AstropyUserWarning",
"ignore:unclosed file:ResourceWarning",
"ignore:The conversion of these 2D helioprojective coordinates to 3D is all NaNs",
# This is a sunpy < 4.1 issue with Python 3.11
"ignore:'xdrlib' is deprecated and slated for removal in Python 3.13",
# This is a pyvo issue with Python 3.11
"ignore:'cgi' is deprecated and slated for removal in Python 3.13",
# Issue with zarr and dask mismatch
"ignore:ignoring keyword argument 'read_only'"
]
[tool.coverage.run]
omit = [
"reproject/_astropy_init*",
"reproject/conftest.py",
"reproject/*setup_package*",
"reproject/tests/*",
"reproject/*/tests/*",
"reproject/extern/*",
"reproject/version*",
"*/reproject/_astropy_init*",
"*/reproject/conftest.py",
"*/reproject/*setup_package*",
"*/reproject/tests/*",
"*/reproject/*/tests/*",
"*/reproject/extern/*",
"*/reproject/version*",
]
[tool.coverage.report]
exclude_lines = [
# Have to re-enable the standard pragma
"pragma: no cover",
# Don't complain about packages we have installed
"except ImportError",
# Don't complain if tests don't hit assertions
"raise AssertionError",
"raise NotImplementedError",
# Don't complain about script hooks
'def main\(.*\):',
# Ignore branches that don't pertain to this version of Python
"pragma: py{ignore_python_version}",
# Don't complain about IPython completion helper
"def _ipython_key_completions_",
]
[tool.flake8]
max-line-length = "100"
[tool.setuptools_scm]
write_to = "reproject/version.py"
[tool.cibuildwheel]
skip = "cp36-* pp* *-musllinux*"
test-skip = "*-manylinux_aarch64"
[tool.isort]
profile = "black"
multi_line_output = 3
extend_skip_glob = [
"docs/*",
"setup.py"]
line_length = 100
known_third_party = ["astropy"]
known_first_party = ["reproject"]
group_by_package = true
indented_import_headings = false
length_sort_sections = ["future", "stdlib"]
[tool.black]
line-length = 100
target-version = ['py38']
[tool.numpydoc_validation]
checks = [
"all", # report on all checks, except the below
"EX01",
"SA01",
"SS06",
"ES01",
"GL08",
]
[tool.repo-review]
ignore = [
"MY", # ignore MyPy setting checks
"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 update message (we have many of the default ones in our history already)
"PC170", # ignore using pygrep
"PY005", # ignore having a tests/ folder
]
[tool.ruff]
lint.select = [
"B", # flake8-bugbear
"I", # isort
"UP", # pyupgrade
]
[tool.ruff.lint.extend-per-file-ignores]
"docs/conf.py" = ["F405"] # Sphinx injects variables into namespace