-
Notifications
You must be signed in to change notification settings - Fork 5
/
pyproject.toml
189 lines (171 loc) · 4.42 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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
[build-system]
requires = [
"pybind11",
"scikit-build-core>=0.10",
"wheel",
"setuptools",
"setuptools_scm[toml]>=6.2",
]
build-backend = "scikit_build_core.build"
[project]
name = "ebtelplusplus"
authors = [
{ name = "Will Barnes", email = "[email protected]" },
]
description = "Zero-dimensional hydrodynamics of coronal loops"
readme = {file="README.md", content-type = "text/markdown"}
license = {file="LICENSE"}
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Scientific/Engineering :: Astronomy",
"Topic :: Scientific/Engineering :: Physics",
]
keywords = [
"heliophysics",
"solar physics",
"astrophysics",
"hydrodynamics",
"plasma physics",
"science",
]
dynamic = ["version"]
requires-python = ">=3.10"
dependencies = [
"astropy",
]
[project.urls]
Homepage = "https://github.com/rice-solar-physics/ebtelplusplus"
"Bug Tracker" = "https://github.com/rice-solar-physics/ebtelplusplus/issues"
Discussions = "https://github.com/rice-solar-physics/ebtelplusplus/discussions"
Changelog = "https://github.com/rice-solar-physics/ebtelplusplus/releases"
[project.optional-dependencies]
all = ["ebtelplusplus"]
test = [
"ebtelplusplus[all]",
"pytest >=6",
"pytest-astropy",
"pytest-cov >=3",
"hissw",
]
test_idl = [
"ebtelplusplus[test]",
"hissw",
]
docs = [
"ebtelplusplus[all]",
"sphinx>=7.0",
"sphinx-automodapi",
"sphinxcontrib-bibtex",
"pydata-sphinx-theme",
"sphinx-design",
"sphinx-copybutton",
"sphinx-gallery",
"matplotlib",
# Need pkg_resources for sphinxcontrib-bibtex
# and this comes from setuptools
"setuptools",
]
dev = ["ebtelplusplus[test,docs]"]
[tool.scikit-build]
minimum-version = "build-system.requires"
build-dir = "build/{wheel_tag}"
metadata.version.provider = "scikit_build_core.metadata.setuptools_scm"
sdist.include = ["ebtelplusplus/_version.py"]
[tool.setuptools]
packages = ["ebtelplusplus"]
[tool.setuptools_scm]
write_to = "ebtelplusplus/_version.py"
[tool.cibuildwheel]
test-command = "pytest {project}/tests"
test-extras = ["test"]
[tool.pytest.ini_options]
minversion = "6.0"
testpaths = [
"ebtelplusplus",
"docs"
]
norecursedirs = [
"docs/_build",
"docs/generated",
]
doctest_plus = "enabled"
text_file_format = "rst"
addopts = "--doctest-rst"
remote_data_strict = "False"
filterwarnings = [
"error"
]
[tool.coverage]
branch = true
omit = [
"ebtelplusplus/tests/helpers.py",
]
[tool.coverage.report]
[tool.isort]
line_length = 88
wrap_length = 80
sections = ["FUTURE", "STDLIB", "FIRSTPARTY", "LOCALFOLDER"]
known_first_party = ["ebtelplusplus", ]
default_section = "STDLIB"
multi_line_output = 3
use_parentheses = true
include_trailing_comma = true
force_alphabetical_sort_within_sections = true
honor_noqa = true
lines_between_types = 1
[tool.codespell]
skip = "*.fts,*.fits,venv,*.pro,*.bib,*.asdf,*.json"
ignore-words-list = "ebtel,hydrad"
[tool.ruff]
target-version = "py310"
line-length = 110
exclude=[
".git,",
"__pycache__",
"build",
"ebtelplusplus/version.py",
]
show-fixes = true
output-format = "full"
lint.select = [
"E",
"F",
"W",
"UP",
"PT",
#"RET",
#"TID",
]
lint.extend-ignore = [
# pycodestyle (E, W)
"E501", # LineTooLong # TODO! fix
"E741", # Ambiguous variable name
# pytest (PT)
"PT001", # Always use pytest.fixture()
"PT004", # Fixtures which don't return anything should have leading _
"PT007", # Parametrize should be lists of tuples # TODO! fix
"PT011", # Too broad exception assert # TODO! fix
"PT023", # Always use () on pytest decorators
]
[tool.ruff.lint.per-file-ignores]
# Part of configuration, not a package.
"setup.py" = ["INP001"]
"conftest.py" = ["INP001"]
# implicit-namespace-package. The examples are not a package.
"docs/*.py" = ["INP001"]
# Module level imports do not need to be at the top of a file here
"docs/conf.py" = ["E402"]
"__init__.py" = ["E402", "F401", "F403"]
"test_*.py" = ["B011", "D", "E402", "S101"]
[tool.ruff.lint.pydocstyle]
convention = "numpy"