-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathpyproject.toml
More file actions
198 lines (184 loc) · 4.6 KB
/
Copy pathpyproject.toml
File metadata and controls
198 lines (184 loc) · 4.6 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
[build-system]
requires = ["setuptools", "setuptools_scm"]
build-backend = "setuptools.build_meta"
[project]
name = "semeio"
authors = [
{ name = "Equinor ASA", email = "fg_sib-scout@equinor.com" },
]
description = "Forward models and workflows for Ert."
requires-python = ">=3.12"
readme = "README.md"
license = "GPL-3.0-or-later"
classifiers = [
"Environment :: Plugins",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Natural Language :: English",
"Programming Language :: Python",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Scientific/Engineering",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dynamic = ["version"]
dependencies = [
"cvxpy",
"ert>=23.0.0b1.dev0",
"fmu-ensemble>1.6.5",
"numpy",
"pandas>=2",
"pydantic>=2.9",
"pyscal>=0.4.0",
"resdata",
"scikit-learn",
"scipy",
"segyio",
"xlrd",
"xtgeo>=2.15",
"seaborn",
"probabilit>=0.4.1",
"resfo-utilities>=0.1.1",
]
[dependency-groups]
dev = [
'hypothesis',
'mypy',
'odfpy',
'oil_reservoir_synthesizer',
'openpyxl',
'pandas-stubs',
'pre-commit',
'pytest',
'pytest-console-scripts',
'pytest-snapshot',
'pytest-xdist',
'rstcheck-core',
'rust-just',
'types-PyYAML',
'types-openpyxl',
'types-seaborn',
'types-setuptools',
'xlsxwriter>=3.2.3',
'xlwt',
]
[project.urls]
repository = "https://github.com/equinor/semeio"
[project.entry-points."ert"]
AhmAnalysisJob = "semeio.workflows.ahm_analysis.ahmanalysis"
CsvExport2Job = "semeio.workflows.csv_export2.csv_export2"
semeio_forward_models = "semeio.hook_implementations.forward_models"
[project.entry-points."console_scripts"]
csv_export2 = "semeio.workflows.csv_export2.csv_export2:cli"
design2params = "semeio.forward_models.scripts.design2params:main_entry_point"
design_kw = "semeio.forward_models.scripts.design_kw:main_entry_point"
fm_pyscal = "semeio.forward_models.scripts.fm_pyscal:main_entry_point"
fmudesign = "semeio.fmudesign.fmudesignrunner:main"
gendata_rft = "semeio.forward_models.scripts.gendata_rft:main_entry_point"
overburden_timeshift = "semeio.forward_models.scripts.overburden_timeshift:main_entry_point"
replace_string = "semeio.forward_models.scripts.replace_string:main_entry_point"
[tool.setuptools_scm]
version_file = "src/semeio/version.py"
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
"semeio.fmudesign.examples" = ["*.xlsx", "*.yml", "*.yaml", "*.toml"]
[tool.pytest.ini_options]
addopts = "-ra --strict-markers"
markers = [
"equinor_test: Requires presences of test data in specified location",
"ert_integration: Involves running the ert application explicitly",
"integration_test: Not a unit test",
]
[tool.ruff]
src = ["src"]
line-length = 88
extend-exclude = ["tests/legacy_test_data"]
[tool.ruff.lint]
select = [
"A",
"AIR",
"ANN", # flake8-annotations
"ASYNC",
"B", # flake-8-bugbear
"BLE",
"C4", # flake8-comprehensions
"DJ",
"DTZ",
"E",
"EXE",
"F", # pyflakes
"FA",
"FAST",
"FBT",
"FIX",
"FLY",
"FURB",
"I", # isort
"ICN", # flake8-import-conventions
"INP",
"INT",
"ISC", # string concatenation
"LOG",
"NPY", # numpy specific rules
"PD", # pandas
"PERF",
"PGH", # pygrep-hooks
"PIE", # flake8-pie
"PLC",
"PLE",
"PLR",
"PLW",
"PT", # pytest
"PTH",
"PYI", # flake8-pyi
"Q",
"RET", # flake8-return
"RSE",
"RUF", # ruff specific rules
"SIM", # flake-8-simplify
"SLOT",
"TC", # type checking imports
"TD",
"TID",
"UP", # pyupgrade
"W", # pycodestyle
"YTT",
]
preview = true
ignore = [
"PLC2701", # import-private-name
"PLR0911", # too-many-return-statements
"PLR0912", # too-many-branches
"PLR0914", # too-many-local-variables
"PLR0915", # too-many-statements
"PLR2004", # magic-value-comparison
"PTH118", # os-path-join
"PTH208", # os-listdir
"PTH122", # os-path-splitext
]
[tool.ruff.lint.per-file-ignores]
"!*/semeio/{fmudesign,forward_models}/**.py" = ["ANN"]
[tool.ruff.lint.pylint]
max-args = 20
[tool.uv]
fork-strategy = "requires-python"
exclude-newer = "7 days"
[tool.uv.exclude-newer-package]
# Excluded as they are developed by Equinor
ert = false
fmu-ensemble = false
graphite-maps = false
iterative_ensemble_smoother = false
resdata = false
resfo = false
resfo-utilities = false
segyio = false
probabilit = false
xtgeo = false
oil-reservoir-synthesizer = false
ropt-dakota = false
ropt = false
# Exclude for security update
urllib3 = false