-
Notifications
You must be signed in to change notification settings - Fork 12
/
pyproject.toml
136 lines (121 loc) · 2.97 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
[build-system]
requires = ["setuptools>=63.4.2", "setuptools_scm[toml]>=7.1.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "iterative_ensemble_smoother"
description="A library for the iterative ensemble smoother algorithm."
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.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dependencies = ["numpy", "scipy"]
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",
"docutils<0.21",
"pydata_sphinx_theme",
"jupyter_sphinx",
"sphinxcontrib.bibtex",
"matplotlib",
"pygments",
"jupytext",
"pandas",
"p_tqdm",
"ipykernel",
"ipywidgets",
"numpydoc",
"scipy",
"jinja2",
"m2r2",
"myst_nb",
"lxml_html_clean"
]
dev = [
"pytest",
"pytest-snapshot",
"pytest-memray",
"tox",
"pre-commit",
"matplotlib",
"scipy",
"mypy",
"pandas",
"p_tqdm",
"pylint"
]
# 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"
]
[tool.ruff]
select = [
# Pyflakes
"F",
# Pycodestyle
"E",
"W",
# isort
"I"
]
src = ["src", "tests", "docs"]
# Allow autofix for all enabled rules (when `--fix`) is provided.
fixable = ["A", "B", "C", "D", "E", "F", "I"]
unfixable = []
# 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",
]
# Same as Black.
line-length = 88
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
# Assume Python 3.10.
target-version = "py310"
[tool.ruff.mccabe]
# Unlike Flake8, default to a complexity level of 10.
max-complexity = 10