-
Notifications
You must be signed in to change notification settings - Fork 3
/
pyproject.toml
168 lines (146 loc) · 3.94 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
[tool.poetry]
name = "segy"
version = "0.3.0"
description = "The Ultimate Python SEG-Y I/O with Cloud Support and Schemas"
authors = ["TGS <[email protected]>"]
maintainers = ["Altay Sansal <[email protected]>"]
license = "Apache-2.0"
readme = "README.md"
repository = "https://github.com/TGSAI/segy"
documentation = "https://segy.readthedocs.io"
classifiers = ["Development Status :: 4 - Beta"]
packages = [{ include = "segy", from = "src" }]
keywords = ["segy", "seismic", "data", "geophysics"]
[tool.poetry.dependencies]
python = ">=3.9, <3.13"
fsspec = "^2024.10.0"
numpy = "^2.0.0"
pydantic = "^2.9.2"
pydantic-settings = "^2.6.1"
numba = ">=0.59.1, <0.70.0"
pandas = "^2.2.2"
typer = "^0.13.1"
rapidfuzz = "^3.10.1"
gcsfs = {version = "^2024.10.0", optional = true}
s3fs = {version = "^2024.10.0", optional = true}
adlfs = {version = "^2024.7.0", optional = true}
eval-type-backport = { version = "^0.2.0", python = "<3.10" }
[tool.poetry.group.dev.dependencies]
ruff = "^0.7.4"
coverage = {version = "^7.6.7", extras = ["toml"]}
mypy = "^1.13.0"
pytest = "^8.3.3"
pre-commit = "^4.0.1"
pre-commit-hooks = "^5.0.0"
typeguard = "^4.4.1"
urllib3 = "^1.26.18" # Workaround for poetry-plugin-export/issues/183
pandas-stubs = "^2.2.2.240807"
[tool.poetry.group.docs.dependencies]
sphinx = "7.4.7"
sphinx-design = "^0.6.1"
sphinx-copybutton = "^0.5.2"
furo = ">=2024.8.6"
myst-nb = "^1.1.1"
linkify-it-py = "^2.0.3"
autodoc-pydantic = "^2.2.0"
sphinxcontrib-typer = "^0.5.0"
sphinx-autobuild = ">=2024.9.3"
[tool.poetry.extras]
cloud = ["s3fs", "gcsfs", "adlfs"]
[tool.poetry.scripts]
segy = "segy.cli.segy:app"
[tool.ruff]
target-version = "py39"
src = ["src"]
[tool.ruff.lint]
select = [
"E", # pycodestyle
"F", # pyflakes
"B", # bugbear
"I", # isort
"UP", # pyupgrade
"N", # pep8-naming
"D", # pydocstyle
"ANN", # annotations
"S", # bandit
"A", # builtins
"C4", # comprehensions
"DTZ", # datetimez
"EM", # errmsg
"ICN", # import-conventions
"PIE", # pie
"PT", # pytest-style
"RSE", # raise
"RET", # return
"SIM", # simplify
"TID", # tidy-imports
"TCH", # type-checking
"ARG", # unused-arguments
"PTH", # use-pathlib
"TD", # todos
"PL", # pylint
"FLY", # flynt
"NPY201", # numpy
"LOG", # logging
"G", # logging-format
"PERF", # perflint
]
ignore = [
"ANN101", # Missing type annotation for `self`
"D107", # Missing docstring in __init__ ; should be in class docstring
]
[tool.ruff.lint.per-file-ignores]
"src/segy/standards/fields.py" = ["E501"]
"tests/*" = ["S101"]
[tool.ruff.lint.flake8-annotations]
mypy-init-return = true
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.isort]
force-single-line = true
[tool.ruff.lint.pycodestyle]
max-line-length = 100
ignore-overlong-task-comments = true
[tool.pydoclint]
style = "google"
arg-type-hints-in-docstring = false
check-return-types = false
check-yield-types = false
exclude = 'src/segy/ibm.py'
[tool.coverage.paths]
source = ["src", "*/site-packages"]
tests = ["tests", "*/tests"]
[tool.coverage.run]
branch = true
source = ["segy", "tests"]
[tool.coverage.report]
show_missing = true
fail_under = 93
exclude_also = [
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"def __repr__",
"raise NotImplementedError",
]
[tool.mypy]
strict = true
warn_unreachable = true
warn_redundant_casts = true
warn_unused_ignores = true
pretty = true
show_column_numbers = true
show_error_codes = true
show_error_context = true
plugins = ["pydantic.mypy", "numpy.typing.mypy_plugin"]
# for strict mypy: (this is the tricky one)
disallow_untyped_defs = true
[[tool.mypy.overrides]]
module = ["fsspec.*", "numba.*"]
ignore_missing_imports = true
[tool.pydantic-mypy]
init_forbid_extra = true
init_typed = true
warn_required_dynamic_aliases = true
[build-system]
requires = ["poetry-core", "fastentrypoints"]
build-backend = "poetry.core.masonry.api"