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
|
[metadata]
name = specutils
author = Specutils Developers
author_email = coordinators@astropy.org
license = BSD 3-Clause
license_file = licenses/LICENSE.rst
description = Package for spectroscopic astronomical data
long_description = file: README.rst
long_description_content_type = text/x-rst
edit_on_github = False
github_project = astropy/specutils
project_urls =
Source = https://github.com/astropy/specutils
Documentation = https://specutils.readthedocs.io
classifiers =
Intended Audience :: Science/Research
License :: OSI Approved :: BSD License
Operating System :: OS Independent
Programming Language :: Python
Programming Language :: Python :: 3
Topic :: Scientific/Engineering :: Astronomy
Topic :: Software Development :: Libraries
[options]
zip_safe = False
packages = find:
python_requires = >=3.11
install_requires =
numpy>=1.24
scipy>=1.14
astropy>=7.0
gwcs>=0.22
asdf-astropy>=0.5
asdf>=3.3.0
ndcube>=2.0
[options.extras_require]
test =
pytest-asdf-plugin
pytest-astropy
tox
matplotlib
spectral-cube
jwst =
stdatamodels>=1.1.0
docs =
sphinx-astropy
matplotlib
graphviz
[options.package_data]
specutils.io.asdf = schemas/*.yaml,manifests/*.yaml
specutils.io.default_loaders.tests = desi_test_data/*.fits
[options.entry_points]
asdf.extensions =
specutils = specutils.io.asdf.extension:get_extensions
asdf.resource_mappings =
specutils = specutils.io.asdf.extension:get_resource_mappings
[tool:pytest]
testpaths = "specutils" "docs"
xfail_strict = true
doctest_plus = enabled
doctest_norecursedirs =
*/__init__.py
doctest_subpackage_requires =
docs/analysis.rst = astropy>=5.3
docs/spectral_cube.rst = astropy>=5.3
text_file_format = rst
addopts = --color=yes --doctest-rst
asdf_schema_root = specutils/io/asdf/schemas
asdf_schema_tests_enabled = true
filterwarnings =
error
ignore::DeprecationWarning
ignore::astropy.utils.exceptions.AstropyDeprecationWarning
ignore:distutils Version classes are deprecated:DeprecationWarning
ignore:numpy\.ndarray size changed:RuntimeWarning
ignore:numpy\.ufunc size changed:RuntimeWarning
ignore:invalid value encountered:RuntimeWarning
ignore:.*contains multiple slashes:astropy.units.core.UnitsWarning
ignore::astropy.wcs.wcs.FITSFixedWarning
ignore:Input WCS indicates that the spectral axis is not last:UserWarning
ignore:No velocity defined on frame:astropy.coordinates.spectral_coordinate.NoVelocityWarning
ignore:No observer defined on WCS:astropy.utils.exceptions.AstropyUserWarning
[coverage:run]
omit =
specutils/conftest.py
specutils/tests/*
specutils/*/tests/*
specutils/*/*/tests/*
specutils/version*
*/specutils/conftest.py
*/specutils/tests/*
*/specutils/*/tests/*
*/specutils/*/*/tests/*
*/specutils/version*
[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_
# TODO: Un-ignore and fix these warnings.
# E126 continuation line over-indented for hanging indent
# E127 continuation line over-indented for visual indent
# E128 continuation line under-indented for visual indent
# E201 whitespace after '{'
# E202 whitespace before ']'
# E203 whitespace before ','
# E221 multiple spaces before operator
# E225 missing whitespace around operator
# E226 missing whitespace around arithmetic operator
# E227 missing whitespace around bitwise or shift operator
# E231 missing whitespace after ','
# E251 unexpected spaces around keyword / parameter equals
# E501 line too long
# E731 do not assign a lambda expression, use a def
# E741 ambiguous variable name 'l'
# W503 line break before binary operator
# W504 line break after binary operator
# W505 doc line too long
[flake8]
max-line-length = 100
max-doc-length = 79
ignore = E126,E127,E128,E201,E202,E203,E221,E225,E226,E227,E231,E251,E501,E731,E741,W503,W504,W505
|