forked from equinor/fmu-dataio
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
219 lines (203 loc) · 7.52 KB
/
Copy pathpyproject.toml
File metadata and controls
219 lines (203 loc) · 7.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
# NOTE: you have to use single-quoted strings in TOML for regular expressions.
[build-system]
requires = ["pip>=19.1.1", "setuptools", "setuptools_scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"
[project]
name = "fmu-dataio"
description = "Facilitate data io in FMU with rich metadata"
readme = "README.md"
requires-python = ">=3.11"
license = { text = "Apache 2.0" }
authors = [
{ name = "Equinor", email = "fg_fmu-atlas@equinor.com" },
]
keywords = ["fmu", "sumo"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Programming Language :: Python",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Physics",
"Topic :: Software Development :: Libraries",
"Topic :: Utilities",
]
dynamic = ["version"]
dependencies = [
"PyYAML",
"fmu-datamodels~=0.24.0",
"fmu-settings>=0.34.0",
"fmu-sumo",
"jsonschema",
"numpy",
"pandas",
"pyarrow",
"pydantic",
"xtgeo>=2.16",
]
[project.urls]
Homepage = "https://github.com/equinor/fmu-dataio"
Repository = "https://github.com/equinor/fmu-dataio"
Issues = "https://github.com/equinor/fmu-dataio/issues"
Documentation = "https://fmu-dataio.readthedocs.io"
[project.optional-dependencies]
dev = [
"coverage>=4.1",
"ert>=15",
"hypothesis",
"jsonschema",
"mypy",
"openpyxl",
"pandas-stubs",
"pyarrow-stubs",
"pydocstyle",
"pyqt6<6.10.0", # Fails installing via ert
"pytest",
"pytest-cov",
"pytest-mock",
"pytest-runner",
"pytest-xdist",
"rstcheck",
"ruff",
"types-PyYAML",
"types-requests",
]
docs = [
"Sphinx",
"autoapi",
"autodoc-pydantic>=2.0.0",
"furo",
"myst-parser",
"pydocstyle",
"sphinx-autodoc-typehints",
"sphinx-copybutton",
"sphinx-togglebutton",
"sphinxcontrib-apidoc",
"urllib3",
]
[project.entry-points.ert]
dataio_case_metadata = "fmu.dataio._workflows.case.main"
dataio_copy_preprocessed = "fmu.dataio._workflows.copy_preprocessed"
[tool.setuptools_scm]
write_to = "src/fmu/dataio/version.py"
[tool.pytest.ini_options]
minversion = "6.0"
testpaths = "tests"
filterwarnings = [
# Ignore deprecation warnings in tests not specifically testing them
# These are tested explicitly in test_deprecations.py and test_dataio.py
"ignore:The 'access_ssdl' argument is deprecated:FutureWarning",
"ignore:Using the 'content' argument to set both the content:FutureWarning",
"ignore:Using the 'vertical_domain' argument to set both:FutureWarning",
"ignore:The 'workflow' argument should be given as a string:FutureWarning",
"ignore:In the future it will not be possible to enter following arguments:FutureWarning",
# Ignore no-effect deprecation warnings
"ignore:The 'runpath' key has currently no function:UserWarning",
"ignore:The 'grid_model' key has currently no function:UserWarning",
"ignore:Using the 'legacy_time_format=True' option:UserWarning",
"ignore:Using the 'createfolder=False' option:UserWarning",
"ignore:Using the 'verifyfolder=False' option:UserWarning",
"ignore:The 'reuse_metadata_rule' key is deprecated:UserWarning",
"ignore:The 'realization' key is deprecated:UserWarning",
"ignore:The 'aggregation' key is deprecated:UserWarning",
"ignore:The 'table_include_index' option is deprecated:UserWarning",
"ignore:Using the 'verbosity' key is now deprecated:UserWarning",
"ignore:Support for using an absolute path as 'forcefolder':UserWarning",
"ignore:The 'include_ertjobs' option is deprecated:UserWarning",
"ignore:The 'depth_reference' key has no function:UserWarning",
"ignore:The 'meta_format' option is deprecated:UserWarning",
"ignore:The options 'arrow_fformat', 'cube_fformat':UserWarning",
# Ignore expected warnings that aren't errors
"ignore:Could not detect any standard index columns in table:UserWarning",
"ignore:The table provided does not contain all required standard table index columns:FutureWarning",
"ignore::FutureWarning:fmu.dataio.providers.objectdata._xtgeo",
"ignore:Could not detect metadata for the proposed casepath:UserWarning",
"ignore:Could not auto detect the case metadata:UserWarning",
"ignore:Both 'geometry' and 'parent' keys are given:UserWarning",
"ignore:The global configuration has one or more errors:UserWarning",
"ignore:Data will be exported, but without metadata:UserWarning",
"ignore:The value of 'vertical_domain' is 'depth'.*vertical_domain.*will be set to 'time':UserWarning",
"ignore:Setting 'rep_include' from the config is deprecated:FutureWarning",
"ignore:Providing input settings through environment variables is deprecated:FutureWarning",
# Ignore mutation deprecation warnings (tested in test_dataio.py::test_mutation_*)
"ignore:Mutating ExportData\\..* after initialization is deprecated:FutureWarning",
# Ignore importlib numpy size incompatibility warning
# https://github.com/scikit-learn-contrib/hdbscan/issues/457#issuecomment-773671043
# https://numpy.org/doc/stable/release/1.20.0-notes.html#size-of-np-ndarray-and-np-void-changed
"ignore:numpy.ndarray size changed:RuntimeWarning",
"ignore:Config contains a SUMMARY key but no forward model steps known to generate summary files:UserWarning",
"ignore:This project is configured to use FMU Settings.:UserWarning",
"ignore:This project is not yet configured to use FMU Settings.:FutureWarning",
]
[tool.coverage.run]
omit = [
"version.py",
"tests/**",
]
[tool.pydocstyle]
convention = "google"
match = '(?!(test_|_)).*\.py'
[tool.ruff]
line-length = 88
exclude = ["version.py", "docs/ext/**"]
[tool.ruff.lint]
ignore = [
"B028", # No explicit `stacklevel` keyword argument found
"C901", # mccabe complex-structure
"PD011", # Avoid using .values on dataframes (gives false positives)
"TC001", # Move imports under TYPE_CHECKING. Breaks Pydantic annotations
"TC003", # Move stdlib imports under TYPE_CHECKING. Breaks Pydantic annotations
]
select = [
"B", # flake-8-bugbear
"C90", # mccabe
"E", # pycodestyle-error
"F", # pyflakes
"I", # isort
"NPY", # numpy
"PD", # pandas-vet
"PIE", # flake8-pie
"Q", # flake8-quotes
"RET", # flake8-return
"RSE", # flake8-raise
"SIM", # flake8-simplify
"TCH", # flake8-type-checking
# "TID", # flake8-tidy-imports
"UP", # pyupgrade
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.isort]
combine-as-imports = true
[tool.mypy]
disallow_untyped_defs = true
exclude = "^((tests|docs|examples|build|tools)/|conftest.py?)"
extra_checks = true
ignore_missing_imports = true
python_version = 3.11
strict_equality = true
warn_redundant_casts = true
warn_unused_configs = true
warn_unused_ignores = true
[tool.uv]
exclude-newer = "1 week"
# Exclude specific package(s) we maintain for quick iteration
[tool.uv.exclude-newer-package]
"fmu-config" = false
"fmu-datamodels" = false
"fmu-settings" = false
"fmu-sumo" = false
"fmu-sumo-uploader" = false
"graphite-maps" = false
"iterative-ensemble-smoother" = false
"sumo-wrapper-python" = false
"xtgeo" = false
"ert" = false
"ropt" = false # Developed in cooperation with Equinor
"ropt-dakota" = false # Developed in cooperation with Equinor