-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathpyproject.toml
More file actions
162 lines (147 loc) · 5.13 KB
/
Copy pathpyproject.toml
File metadata and controls
162 lines (147 loc) · 5.13 KB
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
[build-system]
requires = [
"setuptools>=65",
"wheel",
"setuptools_scm>=8.1",
"numpy",
"cython>=3.0"
]
build-backend = "setuptools.build_meta"
[project]
name = "pyuvdata"
authors = [
{name = "Bryna Hazelton", email = "brynah@phys.washington.edu"},
{name = "Adam Beardsley", email = "adam.beardsley@winona.edu"},
{name = "Daniel Jacobs", email = "daniel.c.jacobs@gmail.com"},
{name = "Garrett Keating", email = "garrett.keating@cfa.harvard.edu"},
{name = "Nicholas Kern", email = "nkern@mit.edu"},
{name = "Matthew Kolopanis", email = "matthew.kolopanis@gmail.com"},
{name = "Adam Lanman", email = "alanman@mit.edu"},
{name = "Paul La Plante", email = "paul.laplante@unlv.edu"},
{name = "Steven Murray", email = "murray.steveng@gmail.com"},
{name = "Jonathan Pober", email = "jonathan_pober@brown.edu"},
{name = "Pyxie Star", email = "pyxiestar@gmail.com"},
]
maintainers = [
{name = "Bryna Hazelton", email = "brynah@phys.washington.edu"},
{name = "Matthew Kolopanis", email = "matthew.kolopanis@gmail.com"},
{name = "Garrett Keating", email = "garrett.keating@cfa.harvard.edu"},
{name = "Steven Murray", email = "murray.steveng@gmail.com"},
]
description = "A pythonic interface for radio astronomy interferometry data"
readme = "README.md"
dynamic = ["version"]
license = "BSD-2-Clause"
license-files = ["LICEN[CS]E*"]
dependencies = [
"astropy>=6.0",
"docstring-parser>=0.15",
"h5py>=3.7",
# numba above 0.63 has no wheels for intel macs but is required for python 3.14
"numba>=0.57.0,<0.63; python_version < '3.14'",
"numba>=0.63; python_version >= '3.14'",
"numpy>=1.23",
"pyerfa>=2.0.1.1",
"pyyaml>=5.4.1",
"scipy>=1.9",
"setuptools_scm>=8.1",
]
requires-python = ">=3.11"
keywords = ["radio astronomy", "interferometry"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"Programming Language :: Python :: 3",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Topic :: Scientific/Engineering :: Astronomy",
]
[project.optional-dependencies]
astroquery = ["astroquery>=0.4.4"]
casa = ["python-casacore>=3.5.2"]
hdf5_compression = ["hdf5plugin>=3.3.1"]
healpix = ["astropy_healpix>=1.0.2"]
lunar = ["lunarsky>=1.0"]
novas = ["novas", "novas_de405"]
plotting = ["matplotlib>=3.7"]
all = ["pyuvdata[astroquery,casa,hdf5_compression,healpix,lunar,novas,plotting]"]
datasets = ["pooch>=1.8"]
tutorial = ["pyuvdata[plotting]", "pyuvdata[datasets]"]
test = [
"pyuvdata[datasets]",
"coverage",
"cython>=3.0",
"pre-commit",
"pytest>=8.2.0,<9.1",
"pytest-xdist",
"pytest-cases>=3.9.1",
"pytest-cov",
"sybil>=8.0",
]
doc = ["pyuvdata[tutorial]", "pypandoc", "sphinx"]
dev = ["pyuvdata[all,test,doc]"]
[project.urls]
Repository = "https://github.com/RadioAstronomySoftwareGroup/pyuvdata"
Documentation = "https://pyuvdata.readthedocs.io"
# Note that this approach is "discouraged" in favor of [project.scripts], but
# that requires entry-point functions, which would require some refactoring.
[tool.setuptools]
script-files = [
"scripts/check_uvfits_equal.py",
"scripts/convert_to_uvfits.py",
"scripts/fhd_batch_convert.py",
"scripts/pyuvdata_inspect.py",
"scripts/readwrite_uvfits.py",
"scripts/renumber_ants.py",
"scripts/uvfits_memtest.py",
]
[tool.setuptools_scm]
[tool.pytest.ini_options]
testpaths = "tests"
addopts = "--ignore=scripts --ignore=docs"
[tool.ruff.lint]
select = [
"E", # pycodestyle
"W", # pycodestyle warnings
"F", # Pyflakes
"D", # pydocstyle
"UP", # pyupgrade
"B", # flake8-bugbear
"A", # flake8-builtins
"C4", # flake8-comprehensions
"N", # pep8-naming
"SIM", # flake8-simplify
"I", # isort
# "C90", # McCabe complexity. Consider for the future
]
ignore = [
"N806", # non-lowercase variable (we use N* for axes lengths)
"B028", # no-explicit-stacklevel for warnings
"SIM108", # prefer ternary operators. I find them difficult to read.
"D203", # one-blank-line-before-class. we use two.
"D212", # multi-line-summary-first-line. We put it on the second line.
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["D"] # Don't require docstrings for tests
"docs/*.py" = ["D", "A"] # Don't require docstrings or worry about builtins for docs
"setup.py" = ["D"] # Don't require docstrings for setup.py
"src/pyuvdata/utils/coordinates.py" = ["N802"] # non-lowercase function names
"tests/utils/test_coordinates.py" = ["N802"] # non-lowercase function names
"src/pyuvdata/utils/io/__init__.py" = ["A005"] # shadowing a standard-lib module
"tests/utils/io/__init__.py" = ["A005"] # shadowing a standard-lib module
[tool.ruff.format]
skip-magic-trailing-comma = true
[tool.ruff.lint.pycodestyle]
max-line-length = 88
# consider setting this in the future
# [tool.ruff.lint.mccabe]
# max-complexity = 30
[tool.ruff.lint.isort]
combine-as-imports = true
known-first-party = ["pyuvdata"]
split-on-trailing-comma = false
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.bandit.assert_used]
skips = ["*/*_test.py", "*/test_*.py"]