-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpyproject.toml
158 lines (134 loc) · 4.06 KB
/
pyproject.toml
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
[build-system]
requires = [
"setuptools>=62.1",
"setuptools_scm[toml]>=6.2",
"wheel",]
build-backend = "setuptools.build_meta"
[project]
name = "chimerapy"
description = "CHIMERApy is a python implmentation of the CHIMERA coronal hole detection algorithm."
readme = "README.rst"
requires-python = ">=3.9"
license = { file = "licenses/LICENSE.rst", content-type = "text/plain" }
dependencies = [
'sunpy[net,map]>=5.1.0',
'mahotas>=1.4.0',
'scikit-image',
'opencv-python',
]
dynamic = ["version"]
[project.optional-dependencies]
tests = [
"pytest",
"pytest-doctestplus",
"pytest-cov",
]
docs = [
"sphinx",
"sphinx-gallery",
"sphinx-automodapi",
"tomli; python_version <\"3.11\"",
]
dev = ["chimerapy[docs,tests]"]
[project.urls]
repository = "chimerapy.readthedocs.io"
[tool.setuptools]
zip-safe = false
include-package-data = true
[tool.setuptools.packages.find]
[tool.setuptools_scm]
write_to = "chimerapy/_version.py"
[tool.gilesbot]
[tool.gilesbot.pull_requests]
enabled = true
[ tool.gilesbot.towncrier_changelog ]
enabled = true
verify_pr_number = true
changelog_skip_label = "No Changelog Entry Needed"
help_url = "https://github.com/TCDSolar/CHIMERApy/blob/main/changelog/README.rst"
changelog_missing_long = "There isn't a changelog file in this pull request. Please add a changelog file to the `changelog/` directory following the instructions in the changelog [README](https://github.com/TCDSolar/CHIMERApy/blob/main/changelog/README.rst)."
type_incorrect_long = "The changelog file you added is not one of the allowed types. Please use one of the types described in the changelog [README](https://github.com/TCDSolar/CHIMERApy/blob/main/changelog/README.rst)"
number_incorrect_long = "The number in the changelog file you added does not match the number of this pull request. Please rename the file."
[tool.towncrier]
package = "CHIMERApy"
filename = "CHANGELOG.rst"
directory = "changelog/"
issue_format = "`#{issue} <https://github.com/TCDSolar/CHIMERApy/pull/{issue}>`__"
[[tool.towncrier.type]]
directory = "breaking"
name = "Backwards Incompatible Changes"
showcontent = true
[[tool.towncrier.type]]
directory = "api"
name = "API Changes"
showcontent = true
[[tool.towncrier.type]]
directory = "removal"
name = "Deprecations and Removals"
showcontent = true
[[tool.towncrier.type]]
directory = "feature"
name = "Features"
showcontent = true
[[tool.towncrier.type]]
directory = "bugfix"
name = "Bug Fixes"
showcontent = true
[[tool.towncrier.type]]
directory = "doc"
name = "Improved Documentation"
showcontent = true
[[tool.towncrier.type]]
directory = "trivial"
name = "Trivial/Internal Changes"
showcontent = true
[tool.pytest.ini_options]
testpaths = [
"chimerapy",
"docs",
]
norecursedirs = [
'chimerapy/_dev',
'.tox',
'docs/_build',
'docs/generated',
]
doctest_plus = "enabled"
text_file_format = "rst"
addopts = "--doctest-rst"
[tool.coverage.run]
omit = [
"chimerapy/__init*",
"chimerapy/conftest.py",
"chimerapy/*setup_package*",
"chimerapy/tests/*",
"chimerapy/*/tests/*",
"chimerapy/extern/*",
"chimerapy/version*",
"*/chimerapy/__init*",
"*/chimerapy/conftest.py",
"*/chimerapy/*setup_package*",
"*/chimerapy/tests/*",
"*/chimerapy/*/tests/*",
"*/chimerapy/extern/*",
"*/chimerapy/version*",
]
[tool.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.codespell]
skip = '*.fits,*.fts,*.header,*.json,*.xsh,*cache*,*egg*,*extern*,.git,.idea,.tox,_build,*truncated,*.svg,.asv_env,.history'
ignore-words-list = 'alog, nd, nin, ot, te, upto, afile, reord'