-
Notifications
You must be signed in to change notification settings - Fork 157
Expand file tree
/
Copy pathpyproject.toml
More file actions
258 lines (233 loc) · 5.52 KB
/
pyproject.toml
File metadata and controls
258 lines (233 loc) · 5.52 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
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[tool.setuptools.dynamic]
version = {attr = "pygimli._version.__version__"}
[tool.setuptools.packages.find]
# where = ["./"] # list of folders that contain the packages (["."] by default)
include = ["pygimli*", "pygimli.*"]
exclude = ["core*"]
[project]
name = "pygimli"
dynamic = ["version"]
requires-python = ">=3.10"
authors = [
{ name = "Carsten Rücker" },
{ name = "Thomas Günther" },
{ name = "Florian Wagner" },
{ email = "mail@pygimli.org" },
]
description = "Geophysical Inversion and Modelling Library"
readme = "README.md"
license = "Apache-2.0"
license-files = ["LICENSE.md"]
keywords = [
"Geophysical Inversion",
"Geophysical Modelling"
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS :: MacOS X",
"Topic :: Scientific/Engineering",
]
dependencies = [
"setuptools>=75.8.2",
"scooby",
"pgcore",
]
[project.optional-dependencies]
build = [
"numpy>=2.1.3",
"pygccxml",
"pyplusplus",
"build",
"twine",
"wheel",
"auditwheel; sys_platform == 'linux'",
"delvewheel; sys_platform == 'win32'",
"delocate; sys_platform == 'darwin'",
]
opt = [
"ipython",
"matplotlib>3.7",
"meshio",
"pyvista[all]",
"scipy>=1.14,<1.15",
"tetgen>=0.6.5",
"tqdm",
]
test = [
"pygimli[build,opt]",
"tox",
"ruff",
"coverage[toml]",
"pytest>=6.0",
"pytest-cov",
"pytest-html",
"pylint",
]
doc = [
"pygimli[test]",
"bibtexparser",
"jupytext",
"linkify-it-py",
"myst_nb",
"pydata-sphinx-theme",
"gmsh",
"sphinx>=7.2",
"sphinxcontrib-bibtex",
"sphinxcontrib-doxylink",
"sphinxcontrib-programoutput",
"sphinx-gallery",
"sphinx_design",
]
dev = [
"pygimli[build, opt, test, doc]",
]
all = [
"pygimli[dev]",
]
[project.urls]
Homepage = "https://www.pygimli.org"
Documentation = "https://www.pygimli.org/documentation.html"
Repository = "https://github.com/gimli-org/gimli"
"Bug Tracker" = "https://github.com/gimli-org/gimli/issues"
Changelog = "https://github.com/gimli-org/gimli/releases"
[tool.uv.extra-build-dependencies]
pygimli = ["numpy"]
[tool.versioneer]
VCS = "git"
style = "pep440"
versionfile_source = "pygimli/_version.py"
versionfile_build = "pygimli/_version.py"
tag_prefix = "v"
parentdir_prefix = "pygimli-"
[tool.tox]
requires = ["tox>=4.27"]
envlist = [
"py313",
"ruff",
]
[tool.tox.env_run_base]
description = "Run test under {base_python}"
commands = [["pytest"]]
[tool.tox.ruff]
labels = ["ruff"]
[tool.coverage.run]
branch = true
omit = [
"pygimli/testing/*",
]
[tool.coverage.report]
exclude_lines = [
# Don't complain about missing debug-only code:
"def __repr__",
"if self.debug:",
"if debug:",
"if DEBUG:",
"if pg.core.deepDebug() == -1:",
"pg.critical",
# Don't complain if tests don't hit defensive assertion code:
"raise AssertionError",
"raise NotImplementedError",
# Don't complain if non-runnable code isn't run:
"if 0:",
"if False:",
"if __name__ == .__main__.:",
]
[tool.ruff]
target-version = 'py313'
exclude = [
"__pycache__",
".venv",
".venv-py310",
".venv-py311",
".venv-py312",
".venv-py313",
]
line-length = 80
[tool.ruff.format]
docstring-code-format = true
[tool.ruff.lint]
select = [
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"D", # pydocstyle
"E", # Error
"F", # pyflakes
"I", # isort
"N", # pep8-naming
"PGH", # pygrep-hooks
"PTH", # flake8-use-pathlib
"Q", # flake8-quotes
"S", # bandit
"SIM", # flake8-simplify
"TRY", # tryceratops
"UP", # pyupgrade
"W", # Warning
"YTT", # flake8-2020
]
ignore = [
# "D100",
# "D101",
# "D102",
# "D103",
# "D104",
# "D105",
# "D106",
# "D107",
# "D200",
# "D401",
# "E402",
# "E501",
# "F401",
"C408", # Allow use dic(**kwargs)
"E731", # Allow simple lambda function generators
"E741", # Allow use of l I o, variable names
"I001", # Allow unsorted imports
"N802", # Allow "as" name should be lowercase
"N803", # Allow name should be lowercase
"N806", # Allow name should be lowercase
"N999", # Allow "wrong" modulname
"Q000", # Allow single quotes in docstrings
"Q001", # Allow double quotes in docstrings
"S110", # Allow use of except/pass
"SIM105", # all try: BaseException except: pass
"SIM114", # no need for logical if branches
"SIM223", # Allow if 0 and ...
"TRY003", # Avoid specifying messages outside exception class; overly strict, especially for ValueError
]
[tool.ruff.lint.flake8-bugbear]
extend-immutable-calls = [
"chr",
"typer.Argument",
"typer.Option",
]
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.ruff.lint.per-file-ignores]
"tests/*.py" = [
# "D100",
# "D101",
# "D102",
# "D103",
# "D104",
# "D105",
# "D106",
# "D107",
"S101", # use of "assert"
"S102", # use of "exec"
"S106", # possible hardcoded password.
"PGH001", # use of "eval"
]
[tool.ruff.lint.pep8-naming]
staticmethod-decorators = [
"pydantic.validator",
"pydantic.root_validator",
]