-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathpyproject.toml
154 lines (139 loc) · 3.88 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
# 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.8"
license = { text = "Apache 2.0" }
authors = [{ name = "Equinor", email = "[email protected]" }]
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.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Physics",
"Topic :: Software Development :: Libraries",
"Topic :: Utilities",
]
dynamic = ["version"]
dependencies = [
"fmu-config>=1.1.0",
"numpy",
"pandas",
"pyarrow",
"pydantic < 2.10",
"PyYAML",
"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",
"hypothesis",
"jsonschema",
"mypy",
"pandas-stubs",
"pyarrow-stubs",
"pydocstyle",
"PyQt5-sip<12.16.0; python_version == '3.8'",
"pytest-cov",
"pytest-mock",
"pytest-runner",
"pytest",
"rstcheck",
"ruff",
"types-PyYAML",
]
docs = [
"autoapi",
"autodoc-pydantic>=2.0.0",
"myst-parser",
"pydocstyle",
"sphinx-autodoc-typehints<1.23",
"sphinx-rtd-theme",
"sphinx-togglebutton",
"Sphinx",
"sphinxcontrib-apidoc",
"urllib3<1.27",
]
[project.entry-points.ert]
dataio_case_metadata = "fmu.dataio.scripts.create_case_metadata"
dataio_copy_preprocessed = "fmu.dataio.scripts.copy_preprocessed"
[tool.setuptools_scm]
write_to = "src/fmu/dataio/version.py"
[tool.pytest.ini_options]
minversion = "6.0"
testpaths = "tests"
[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
"PD901", # Avoid using the generic variable name `df` for dataframes
"PD011", # Avoid using .values on dataframes (gives false positives)
]
select = [
"B", # flake-8-bugbear
"C", # pylint-convention
"C90", # mccabe
"E", # pycodestyle-error
"F", # pyflakes
"I", # isort
"NPY", # numpy
"PD", # pandas-vet
"PIE", # flake8-pie
# "PL", # pylint
"Q", # flake8-quotes
"RET", # flake8-return
"RSE", # flake8-raise
"SIM", # flake8-simplify
# "TCH", # flake8-type-checking
# "TID", # flake8-tidy-imports
"UP", # pyupgrade
"W", # pylint-warnings
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.pyupgrade]
# Preserve types, even if a file imports `from __future__ import annotations`.
# TODO: Remove when Python 3.8 / 3.9 support is deprecated.
keep-runtime-typing = true
[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.8
strict_equality = true
warn_redundant_casts = true
warn_unused_configs = true
warn_unused_ignores = true