-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
185 lines (163 loc) · 4 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
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>=61.2"]
build-backend = "setuptools.build_meta"
# https://packaging.python.org/en/latest/specifications/declaring-project-metadata/
[project]
name = "imas2xarray"
version = "0.4.0"
description = "Imas2xarray is a tool reading IMAS data in hdf5 format into xarray."
readme = "README.md"
requires-python = ">=3.9"
authors = [
{name = "Stef Smeets", email = "[email protected]"},
{name = "Victor Azizi"},
]
keywords = [
"modelling",
"tokamak",
"fusion-reactor",
"imas",
]
license = {text = "Apache 2.0 License"}
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering",
]
dependencies = [
"importlib_resources; python_version<'3.10'",
"numpy",
"h5py",
"pydantic >= 2.0",
"pydantic-yaml >= 1.0",
"scipy",
"xarray",
]
[project.urls]
homepage = "https://github.com/duqtools/imas2xarray"
issues = "https://github.com/duqtools/imas2xarray/issues"
documentation = "https://imas2xarray.readthedocs.io"
changelog = "https://github.com/duqtools/imas2xarray/releases"
[project.optional-dependencies]
develop = [
"bump-my-version",
"ruff",
"pre-commit",
"coverage[toml]",
"pytest",
"pytest-dependency",
"pycodestyle",
]
docs = [
"jinja2",
"markdown-include",
"mkdocs",
"mkdocs-gen-files",
"mkdocs-material",
"mkdocstrings[python]",
"mknotebooks",
]
publishing = [
"twine",
"wheel",
"build",
]
imas = ["imas"]
[project.scripts]
[tool.setuptools]
zip-safe = false
package-dir = {"" = "src"}
include-package-data = true
[tool.setuptools.packages.find]
where = ["src"]
namespaces = true
[tool.coverage.run]
branch = true
source = ["imas2xarray"]
concurrency = ["multiprocessing"]
data_file = ".coverage"
[tool.pytest.ini_options]
testpaths = ["tests"]
norecursedirs = ["tests/helpers"]
[tool.mypy]
plugins = "pydantic.mypy"
ignore_missing_imports = true
files = ["imas2xarray", "tests"]
allow_redefinition = true
[[tool.mypy.overrides]]
module = ["yaml.*"]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["pkg_resources.*"]
ignore_missing_imports = true
[tool.ruff]
target-version = "py39"
line-length = 96
[tool.lint.ruff]
select = [
"F", # Pyflakes
"E", # pycodestyle (error)
"W", # pycodestyle (warning)
"I", # isort
"NPY201", # numpy deprecation
]
ignore = []
extend-include = ["*.ipynb"]
# Allow autofix for all enabled rules (when `--fix`) is provided.
fixable = ["A", "B", "C", "D", "E", "F", "I"]
unfixable = []
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".hg",
".mypy_cache",
".nox",
".pants.d",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
".venv",
"scripts",
]
per-file-ignores = {}
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.lint.isort]
known-first-party = ["imas2xarray"]
required-imports = ["from __future__ import annotations"]
[tool.ruff.format]
quote-style = "single"
indent-style = "space"
[tool.bumpversion]
current_version = "0.4.0"
[[tool.bumpversion.files]]
filename = "src/imas2xarray/__init__.py"
search = "__version__ = '{current_version}'"
replace = "__version__ = '{new_version}'"
[[tool.bumpversion.files]]
filename = "pyproject.toml"
search = "version = \"{current_version}\""
replace = "version = \"{new_version}\""
[[tool.bumpversion.files]]
filename = "CITATION.cff"
search = "version: {current_version}"
replace = "version: {new_version}"