-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathpyproject.toml
More file actions
177 lines (168 loc) · 4 KB
/
Copy pathpyproject.toml
File metadata and controls
177 lines (168 loc) · 4 KB
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
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[project]
name = "astromartini"
version = "3.0.0"
authors = [
{ name="Kyle Oman", email="kyle.a.oman@durham.ac.uk" },
]
description="Synthetic datacube creation from simulations."
readme = "README.rst"
requires-python = ">=3.10"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: OS Independent",
]
dependencies = [
"numpy",
"scipy",
"astropy",
"tqdm",
]
[project.urls]
"Homepage" = "https://github.com/kyleaoman/martini"
"Bug Tracker" = "https://github.com/kyleaoman/martini/issues"
"Documentation" = "https://martini.readthedocs.io/en/latest"
[project.optional-dependencies]
parallel = ["numba"]
hdf5_output = ["h5py"]
plotting = ["matplotlib"]
optional = ["astromartini[parallel,h5py,matplotlib]"]
colibresource = [
"swiftgalaxy",
]
eaglesource = [
"hdecompose",
"pyread_eagle",
"eagleSqlTools",
]
firesource = [
"utilities-awetzel",
"gizmo-analysis",
"halo-analysis",
]
magneticumsource = ["g3read"]
simbasource = ["h5py"]
swiftgalaxysource = [
"swiftgalaxy",
]
tngsource = ["hdecompose", "h5py", "requests", "six"]
extra_sources = ["astromartini[eaglesource,tngsource,magneticumsource,simbasource,swiftgalaxysource,colibresource,firesource]"]
docs = [
"sphinx",
"sphinx-rtd-theme",
"recommonmark",
]
testing = [
"flake8",
"pytest-cov",
"numpydoc",
"sphinx-lint",
"nbmake",
"mypy",
"ruff",
]
all = [
"astromartini[optional,extra_sources]",
]
dev = [
"astromartini[all,testing,docs]",
]
[tool.ruff]
exclude = ["docs/source/conf.py", "martini/sources/_illustris_tools.py"]
line-length = 88
indent-width = 4
target-version = "py310"
[tool.ruff.lint]
select = ["E4", "E7", "E9", "F", "D", "ANN"]
ignore = []
fixable = ["ALL"]
unfixable = []
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.lint.per-file-ignores]
"tests/test_*" = ["ANN"]
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
docstring-code-format = false # enable eventually
docstring-code-line-length = "dynamic"
# numpydoc_validation provides many useful rules that ruff does not yet.
# If ruff support for rules improves this can be phased out.
[tool.numpydoc_validation]
checks = [
"GL01",
"GL02",
"GL03",
"GL05",
"GL06",
"GL07",
"GL08",
"GL10",
"SS01",
"SS02",
"SS03",
"SS04",
"SS05",
"PR01",
"PR02",
"PR03",
"PR04",
"PR05",
"PR06",
"PR07",
"PR08",
"PR09",
"PR10",
"RT02",
"RT03",
"RT04",
"RT05",
"SA02",
"SA03",
"SS06",
]
# Don't document class __init__ methods, put the docstring on the class object.
exclude = ['\.__init__$', '\.test_', '_illustris_tools']
[tool.mypy]
ignore_missing_imports = true
# disallow_untyped_defs = true
modules = [
"martini",
"martini.beams",
"martini.datacube",
"martini.martini",
"martini.noise",
"martini.spectral_models",
"martini.sph_kernels",
"martini.sources.colibre_source",
"martini.sources.eagle_source",
"martini.sources.fire_source",
"martini.sources.magneticum_source",
"martini.sources.simba_source",
"martini.sources.so_source",
"martini.sources.sph_source",
"martini.sources.swiftgalaxy_source",
"martini.sources.tng_source",
"martini.sources._extra_cartesian_transforms",
"martini.sources._L_align",
"martini._demo",
"tests",
"tests.conftest",
"tests.test_beams",
"tests.test_datacube",
"tests.test_demo",
"tests.test_examples",
"tests.test_fits_compliant",
"tests.test_martini",
"tests.test_noise",
"tests.test_sources",
"tests.test_spectral_models",
"tests.test_sph_kernels",
"tests.test_version",
]