forked from sunpy/sunkit-spex
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.cfg
124 lines (114 loc) · 3.22 KB
/
setup.cfg
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
[metadata]
name = sunkit-spex
provides = sunkit_spex
author = The SunPy Community
author_email = [email protected]
license = BSD 3-Clause
license_file = LICENSE.rst
url = https://sunkit-spex.readthedocs.io
description = A package for solar X-ray spectroscopy.
long_description = file: README.rst
[options]
zip_safe = False
packages = find:
python_requires = >=3.9
setup_requires = setuptools_scm
install_requires =
sunpy
parfive
scipy
xarray
quadpy
orthopy
ndim
matplotlib
emcee
corner
nestle
numdifftools
[options.extras_require]
test =
pytest
pytest-astropy
pytest-cov
pytest-xdist
docs =
sphinx
sphinx-automodapi
sunpy-sphinx-theme
# Remove next line when fixed in towncrier; see https://github.com/twisted/towncrier/issues/528
importlib-resources<6
sphinx-changelog>=1.1.1
[options.package_data]
sunkit_spex = data/*
[tool:pytest]
testpaths = "sunkit_spex" "docs"
norecursedirs = ".tox" "build" "docs[\/]_build" "docs[\/]generated" "*.egg-info" ".jupyter" ".history" "Fitter[\/]extern"
doctest_plus = enabled
doctest_optionflags = NORMALIZE_WHITESPACE FLOAT_CMP ELLIPSIS
addopts = --dist no --doctest-rst --doctest-ignore-import-errors -p no:unraisableexception -p no:threadexception
markers =
remote_data: marks this test function as needing remote data.
online: marks this test function as needing online connectivity.
mpl_image_compare: marks this test function as using hash-based Matplotlib figure verification. This mark is not meant to be directly applied, but is instead automatically applied when a test function uses the @sunpy.tests.helpers.figure_test decorator.
flaky
array_compare
remote_data_strict = False
# Pin junit behaviour; we might want to update this to xunit2 at some point
junit_family=xunit1
filterwarnings =
[pycodestyle]
max_line_length = 100
[flake8]
max-line-length = 100
exclude =
.git,
__pycache__,
docs/conf.py,
build
rst-directives =
plot
[isort]
balanced_wrapping = True
skip=sunkit_spex/extern/,.py,docs/conf.py,sunkit_spex/__init__.py
default_section = THIRDPARTY
include_trailing_comma = True
known_astropy = astropy, asdf
known_first_party = sunpy
length_sort = False
length_sort_sections=stdlib
line_length = 110
multi_line_output = 3
no_lines_before = LOCALFOLDER
sections = STDLIB, THIRDPARTY, ASTROPY, FIRSTPARTY, LOCALFOLDER
[coverage:run]
omit =
sunkit_spex/_sunpy_init*
sunkit_spex/conftest.py
sunkit_spex/*setup_package*
sunkit_spex/tests/*
sunkit_spex/*/tests/*
sunkit_spex/extern/*
sunkit_spex/version*
*/sunkit_spex/
*/sunkit_spex/conftest.py
*/sunkit_spex/*setup_package*
*/sunkit_spex/tests/*
*/sunkit_spex/*/tests/*
*/sunkit_spex/extern/*
*/sunkit_spex/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_