forked from gammapy/gammapy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.cfg
182 lines (169 loc) · 4.56 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
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
[metadata]
name = gammapy
description = A Python package for gamma-ray astronomy
author = The Gammapy developers
author_email = gammapy-coordination-l@in2p3.fr
license = BSD 3-Clause
license_files = LICENSE.rst
url = https://gammapy.org
url_docs = https://docs.gammapy.org/dev/
long_description = file: LONG_DESCRIPTION.rst
long_description_content_type = text/x-rst
edit_on_github = False
github_project = gammapy/gammapy
url_raw_github = https://raw.githubusercontent.com/gammapy/gammapy/master/
platforms = any
classifiers =
Intended Audience :: Science/Research
License :: OSI Approved :: BSD License
Operating System :: OS Independent
Programming Language :: C
Programming Language :: Cython
Programming Language :: Python :: 3
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.12
Programming Language :: Python :: Implementation :: CPython
Topic :: Scientific/Engineering :: Astronomy
[options]
zip_safe = False
packages = find:
python_requires = >=3.9
setup_requires = setuptools_scm
install_requires =
numpy>=1.21
scipy>=1.5,!=1.10
astropy>=5.0
regions>=0.5.0
pyyaml>=5.3
click>=7.0
pydantic>=2.5.0
iminuit>=2.8.0
matplotlib>=3.4
[options.entry_points]
console_scripts =
gammapy = gammapy.scripts.main:cli
[options.extras_require]
all =
naima
sherpa; platform_system != "Windows"
healpy; platform_system != "Windows"
requests
tqdm
ipywidgets
ray[default]>=2.9
all_no_ray =
naima
sherpa; platform_system != "Windows"
healpy; platform_system != "Windows"
requests
tqdm
ipywidgets
cov =
naima
sherpa; platform_system != "Windows"
healpy; platform_system != "Windows"
requests
tqdm
ipywidgets
test =
pytest-astropy
pytest-xdist
pytest
docutils
sphinx
docs =
astropy>=5.0,<5.3
numpy<2.0
sherpa<4.17
sphinx-astropy
sphinx
sphinx-click
sphinx-gallery
sphinx-design
sphinx-copybutton
pydata-sphinx-theme
nbformat
docutils
[options.package_data]
gammapy.analysis = config/*
gammapy.irf.psf.tests = data/*
gammapy.modeling.models.tests = data/*
gammapy.catalog.tests = data/*
[bdist_wheel]
universal = true
[tool:pytest]
minversion = 3.0
norecursedirs = build dev examples docs/_build docs/_static gammapy/extern catalog/tests/data
addopts = -p no:warnings --remote-data=any
remote_data_strict = True
astropy_header = true
text_file_format = rst
[coverage:run]
omit =
*tests*
gammapy/extern/*
gammapy/conftest.py
# Exclude some code that's only executed by the
# notebook tests or docs build (not users)
# from the coverage measurement
gammapy/scripts/jupyter.py
gammapy/utils/notebooks_links.py
gammapy/utils/notebooks_process.py
gammapy/utils/notebooks_test.py
gammapy/utils/docs.py
gammapy/_astropy_init*
gammapy/conftest.py
gammapy/*setup_package*
gammapy/tests/*
gammapy/*/tests/*
gammapy/extern/*
gammapy/version*
*/gammapy/_astropy_init*
*/gammapy/conftest.py
*/gammapy/*setup_package*
*/gammapy/tests/*
*/gammapy/*/tests/*
*/gammapy/extern/*
*/gammapy/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_
[tool:isort]
profile = "black"
sections = STDLIB,PYTEST,NUMPY,ASTROPY,THIRDPARTY,FIRSTPARTY,LOCALFOLDER
no_lines_before = STDLIB,PYTEST,NUMPY,ASTROPY,THIRDPARTY,FIRSTPARTY,LOCALFOLDER
known_pytest = pytest
known_numpy = numpy,scipy
known_astropy = astropy,regions
known_first_party = gammapy
# Config to make isort compatible with black
# From https://black.readthedocs.io/en/stable/the_black_code_style.html
multi_line_output=3
include_trailing_comma=True
force_grid_wrap=0
use_parentheses=True
line_length=88
[codespell]
skip = ./.git
ignore-words = dev/codespell/ignore-words.txt
exclude-file = dev/codespell/exclude-file.txt
[flake8]
# https://flake8.pycqa.org/en/latest/user/error-codes.html
# W503: line break before binary operator
ignore = W503,E501
exclude = extern,conftest.py,__init__.py
extend-ignore = E203