forked from MiraGeoscience/geoh5py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
151 lines (130 loc) · 3.7 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
[tool.poetry]
name = "geoh5py"
version = "0.10.0-alpha.1"
license = "LGPL-3.0-or-later"
description = "Python API for geoh5, an open file format for geoscientific data"
authors = ["Mira Geoscience <[email protected]>"]
repository = "https://github.com/MiraGeoscience/geoh5py"
maintainers = [
"Benjamin Kary <[email protected]>",
"Dominique Fournier <[email protected]>",
"Matthieu Cedou <[email protected]>",
]
documentation = "https://mirageoscience-geoh5py.readthedocs-hosted.com/"
homepage = "https://www.mirageoscience.com/mining-industry-software/python-integration/"
readme = "package.rst"
keywords = ["geology", "geophysics", "data", "interoperability"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"Natural Language :: English",
"Topic :: Database",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Mathematics",
"Topic :: Scientific/Engineering :: Physics",
"Topic :: Software Development :: Libraries :: Python Modules"
]
exclude = ["geoh5py/handlers/*", "geoh5py/interfaces/*"]
include = [
{ path = "COPYING", format = ["sdist", "wheel"] },
{ path = "COPYING.LESSER", format = ["sdist", "wheel"] },
{ path = "LICENSE", format = ["sdist", "wheel"] },
{ path = "README.rst", format = ["sdist", "wheel"] },
{ path = "THIRD_PARTY_SOFTWARE.rst", format = ["sdist", "wheel"] },
{ path = "docs/**/THIRD_PARTY_SOFTWARE.rst", format = ["sdist", "wheel"] },
]
[tool.poetry.dependencies]
python = "^3.10"
pydantic = "^2.5.2"
h5py = "^3.2.1"
numpy = "~1.26.0"
Pillow = "~10.3.0"
[tool.poetry.group.dev.dependencies]
Pygments = "*"
lockfile = "^0.12.2"
pylint = "*"
pytest = "*"
pytest-cov = "*"
scipy = "~1.14.0"
sphinx = "^3.0"
sphinx-autodoc-typehints = "^1.10"
sphinx-rtd-theme = "^0.4.3"
tomli = "*"
[tool.poetry.extras]
[tool.ruff]
target-version = "py310"
[tool.ruff.lint]
ignore = [
"B028", # no-explicit-stacklevel for warnings.warn()
"E501", # line-too-long - code is reformatted (do not care about comments and docstring)
"F401", # unsused-import - covered by pycln
"TID252", # TODO
"RUF012", # TODO
"UP031", # TODO
"UP038", # TODO
"RUF001", # TODO
"RUF003", # TODO
"RUF005", # TODO
"RUF015", # TODO
"B008", # TODO
"B018", # TODO
"B024", # TODO
"B027", # TODO
"E721", # TODO
"C409", # TODO
]
select = [
"A", # flake8-builtins
"B", # flake8-bugbear
"B006", # Do not use mutable data structures for argument defaults
"B9", # flake8-bugbear opiniated warnings
"BLE", # flake8-blind-except
"C4", # flake8-comprehensions
"C9", # mccabe
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort
"RUF", # ruff rules
"TID", # flake8-tidy-imports
"UP", # pyupgrade
"W", # pycodestyle warnings
]
[tool.ruff.lint.mccabe]
max-complexity = 18
[tool.ruff.lint.isort]
lines-after-imports = 2
[tool.ruff.format]
# default formatting is just fine
[tool.mypy]
warn_unused_configs = true
ignore_missing_imports = true
scripts_are_modules = true
show_error_context = true
show_column_numbers = true
check_untyped_defs = true
plugins = [
# "numpy.typing.mypy_plugin",
"pydantic.mypy"
]
[tool.coverage.run]
branch = true
source = ["geoh5py"]
omit = [
"geoh5py/handlers/*",
"geoh5py/interfaces/*"
]
[tool.coverage.report]
exclude_lines = [
"raise NotImplementedError",
"pass",
"if TYPE_CHECKING",
"pragma: no cover"
]
fail_under = 90
[tool.coverage.html]
skip_empty = true
skip_covered = true
[build-system]
requires = ["poetry-core>=1.0.0", "setuptools"]
build-backend = "poetry.core.masonry.api"