forked from gammapy/gammapy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.cfg
119 lines (108 loc) · 3.2 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
[metadata]
name = gammapy
description = A Python package for gamma-ray astronomy
long-description = file: LONG_DESCRIPTION.rst
long-description-content-type = text/x-rst
author = The Gammapy developers
author_email = [email protected]
license = BSD
url = https://github.com/gammapy/gammapy
github_project = gammapy/gammapy
url_docs = https://docs.gammapy.org/dev/
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.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: Implementation :: CPython
Topic :: Scientific/Engineering :: Astronomy
Development Status :: 3 - Alpha
[options]
zip_safe = False
packages = find:
python_requires = >=3.8
install_requires =
numpy>=1.19,<1.23
scipy>=1.4
astropy>=5.0
regions>=0.5.0
pyyaml>=5.1
click>=7.0
pydantic>=1.4
iminuit>=2.8.0
matplotlib>=3.4
[options.entry_points]
console_scripts =
gammapy = gammapy.scripts.main:cli
[options.package_data]
gammapy.analysis = config/*
gammapy.irf.tests = data/*
gammapy.modeling.tests = data/*
gammapy.catalog.tests = data/*
[bdist_wheel]
universal = true
[build_docs]
source-dir = docs
downloadable-notebooks = _static/notebooks
build-dir = docs/_build
;all_files = 0
[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
[coverage:run]
source = gammapy
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
[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\(.*\):
[tool:isort]
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
exclude = extern