-
Notifications
You must be signed in to change notification settings - Fork 8
/
pyproject.toml
193 lines (184 loc) · 4.25 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
190
191
192
193
[build-system]
build-backend = "hatchling.build"
requires = [
"hatch-vcs",
"hatchling",
]
[project]
classifiers = [
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering :: Astronomy",
"Topic :: Scientific/Engineering :: Physics",
"Typing :: Typed",
]
dependencies = [
"cosmology>=2022.10.9",
"gaussiancl>=2022.10.21",
"healpix>=2022.11.1",
"healpy>=1.15.0",
"numpy>=1.22.0",
]
description = "Generator for Large Scale Structure"
dynamic = [
"version",
]
maintainers = [
{email = "[email protected]", name = "Nicolas Tessore"},
]
name = "glass"
readme = "README.md"
requires-python = ">=3.9"
license.file = "LICENSE"
[project.optional-dependencies]
docs = [
"furo",
"ipython",
"matplotlib",
"nbsphinx",
"sphinx",
"sphinxcontrib-katex",
]
examples = [
"camb",
"glass.ext.camb",
"jupyter",
"matplotlib",
]
test = [
"fitsio",
"pytest",
"pytest-cov",
"pytest-doctestplus",
"pytest-mock",
"pytest-rerunfailures",
"scipy",
]
[project.urls]
Changelog = "https://glass.readthedocs.io/stable/manual/releases.html"
Documentation = "https://glass.readthedocs.io/"
Homepage = "https://github.com/glass-dev/glass"
Issues = "https://github.com/glass-dev/glass/issues"
[tool.coverage]
report = {exclude_also = [
"if typing.TYPE_CHECKING:",
], omit = [
"glass/_version.py",
], skip_covered = true, sort = "cover"}
run = {branch = true, parallel = true, source = [
"glass",
]}
paths.source = [
"src",
".nox*/*/lib/python*/site-packages",
]
[tool.hatch]
build.hooks.vcs.version-file = "glass/_version.py"
build.targets.sdist.exclude = [
".*",
"docs/*",
"examples/*",
"noxfile.py",
"tests/*",
]
version.source = "vcs"
[tool.mypy]
disallow_untyped_decorators = false
enable_error_code = [
"ignore-without-code",
"redundant-expr",
"truthy-bool",
]
plugins = [
"numpy.typing.mypy_plugin",
]
strict = true
warn_unreachable = true
[tool.pytest.ini_options]
addopts = [
"--strict-config",
"--strict-markers",
"-ra",
"-v",
]
filterwarnings = [
"ignore::DeprecationWarning",
]
log_cli_level = "DEBUG"
minversion = "6.0"
testpaths = [
"tests",
]
xfail_strict = true
[tool.ruff]
fix = true
force-exclude = true
show-fixes = true
src = [
"glass",
]
lint.allowed-confusables = [
"α",
"γ",
]
lint.ignore = [
"COM812", # missing-trailing-comma (ruff-format recommended)
"D203", # one-blank-line-before-class
"D212", # blank-line-before-class
"ISC001", # single-line-implicit-string-concatenation (ruff-format recommended)
"NPY201", # TODO: numpy2-deprecation
"RUF003", # ambiguous-unicode-character-comment
]
lint.isort = {known-first-party = [
"glass",
], section-order = [
"future",
"standard-library",
"third-party",
"cosmo",
"first-party",
"local-folder",
], sections = {"cosmo" = [
"camb",
"cosmology",
]}}
lint.per-file-ignores = {"__init__.py" = [
"F401", # unused-import
], "docs*" = [
"D100", # undocumented-public-module
"INP001", # implicit-namespace-package,
], "examples*" = [
"PLR2004", # magic-value-comparison
"T201", # print
], "glass*" = [
"PLR2004", # TODO: magic-value-comparison
], "noxfile.py" = [
"T201", # print
], "tests*" = [
"D100", # undocumented-public-module
"D103", # TODO: undocumented-public-function
"D104", # undocumented-public-package
"INP001", # implicit-namespace-package
"PLR2004", # magic-value-comparison
"S101", # assert
]}
lint.select = [
"ALL",
]
lint.mccabe.max-complexity = 18
lint.pydocstyle.convention = "numpy"
[tool.tomlsort]
all = true
in_place = true
spaces_indent_inline_array = 4
trailing_comma_inline_array = true
overrides."project.classifiers".inline_arrays = false
overrides."tool.coverage.paths.source".inline_arrays = false
overrides."tool.ruff.lint.isort.section-order".inline_arrays = false