forked from equinor/iterative_ensemble_smoother
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
185 lines (169 loc) · 3.75 KB
/
Copy pathpyproject.toml
File metadata and controls
185 lines (169 loc) · 3.75 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
[build-system]
requires = ["setuptools>=63.4.2", "setuptools_scm[toml]>=7.1.0"]
build-backend = "setuptools.build_meta"
[project]
name = "iterative_ensemble_smoother"
description="A library for the iterative ensemble smoother algorithm."
requires-python = ">=3.12, <3.15"
readme = "README.md"
classifiers=[
"Development Status :: 1 - Planning",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Programming Language :: Python",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
dependencies = ["numpy", "scipy", "joblib", "networkx", "scikit-learn"]
dynamic=["version"] # setuptools_scm extracts Python package versions from git
authors = [
{name="Equinor", email="fg_sib-scout@equinor.com"},
]
maintainers = [
{name="Eivind Jahren", email="ejah@equinor.com"},
{name="Feda Curic", email="fcur@equinor.com"},
]
[project.license]
text = "GPL-3.0"
[project.urls]
"Homepage" = "https://github.com/equinor/iterative_ensemble_smoother"
"Repository" = "https://github.com/equinor/iterative_ensemble_smoother"
"Bug Tracker" = "https://github.com/equinor/iterative_ensemble_smoother/issues"
"Documentation" = "https://iterative_ensemble_smoother.readthedocs.io/en/stable/"
[project.optional-dependencies]
doc = [
"sphinx",
"setuptools",
"docutils",
"pydata_sphinx_theme",
"jupyter_sphinx",
"nbconvert>=7.17.1",
"sphinxcontrib.bibtex",
"matplotlib",
"pygments",
"jupytext",
"pandas",
"p_tqdm",
"ipykernel",
"ipywidgets",
"numpydoc",
"scipy",
"jinja2",
"myst_nb",
"lxml_html_clean"
]
dev = [
"pytest",
"pytest-snapshot",
"pytest-memray",
"tox",
"pre-commit",
"matplotlib",
"scipy",
"mypy",
"pandas",
"p_tqdm",
"pylint",
"gaussianfft"
]
# 'scikit-sparse' version and SuiteSparse must match (depends on Ubuntu)
sparse = ["scikit-sparse==0.4.16"]
# setuptools_scm also writes the version to a file so that one can use the
# __version__ attribute from the package
[tool.setuptools_scm]
write_to = "src/iterative_ensemble_smoother/_version.py"
[tool.pytest.ini_options]
testpaths = [
"tests"
]
markers = [
"suitesparse: marks tests that require libsuitesparse to be installed",
]
[tool.ruff]
src = ["src", "tests", "docs"]
line-length = 88
[tool.ruff.lint]
select = [
"A",
"AIR",
"ASYNC",
"BLE",
"DJ",
"E",
"EXE",
"F",
"FA",
"FAST",
"FLY",
"FURB",
"G",
"I",
"ICN",
"INT",
"ISC",
"LOG",
"NPY",
"PD",
"PERF",
"PIE",
"PLC",
"PLE",
"PLW",
"PT",
"PTH",
"PYI",
"Q",
"RET",
"RSE",
"SIM",
"SLF",
"SLOT",
"T",
"TC",
"TID",
"UP",
"W",
"YTT",
]
ignore = [
"G004", # Logging statement uses f-string
]
preview = true
# Exclude a variety of commonly ignored directories.
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".hg",
".mypy_cache",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
]
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.lint.per-file-ignores]
"tests/**" = ["T"]
"docs/**" = ["T"]
[tool.ruff.lint.mccabe]
# Unlike Flake8, default to a complexity level of 10.
max-complexity = 10
[tool.uv]
fork-strategy = "requires-python"
exclude-newer = "7 days"
[tool.codespell]
skip = "*.pyc,*.gif,*.png,*.jpg,*.ply, ./bibliography.bib,*.ipynb"
ignore-words-list = "lod,byteorder,flem,parm,doubleclick,revered,inout,fro,nd,sies,hist,ans"
quiet-level = 3