-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
180 lines (165 loc) · 4.64 KB
/
pyproject.toml
File metadata and controls
180 lines (165 loc) · 4.64 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
[build-system]
requires = [
"hatchling",
]
build-backend = "hatchling.build"
[tool.hatch.build.targets.sdist]
only-include = [
"src/dictIO",
"tests",
".coveragerc",
".editorconfig",
".pre-commit-config.yaml",
"pyproject.toml",
"pytest.ini",
"ruff.toml",
"uv.lock",
]
[tool.hatch.build.targets.wheel]
packages = [
"src/dictIO",
]
[tool.hatch.metadata]
allow-direct-references = true
[project]
name = "dictIO"
version = "0.4.4"
description = "Python package to read, write and manipulate dictionary text files. Supports dictIOs native file format, as well as JSON, XML and OpenFOAM."
readme = "README.md"
requires-python = ">= 3.11"
license = { file = "LICENSE" }
authors = [
{ name = "Frank Lumpitzsch", email = "frank.lumpitzsch@dnv.com" },
{ name = "Claas Rostock", email = "claas.rostock@dnv.com" },
{ name = "Seunghyeon Yoo", email = "seunghyeon.yoo@dnv.com" },
]
maintainers = [
{ name = "Claas Rostock", email = "claas.rostock@dnv.com" },
]
keywords = [
"dictIO",
"dictParser",
"dict",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"lxml>=6.0",
"jsonschema>=4.26",
"numpy>=2.4",
]
[project.urls]
Homepage = "https://github.com/dnv-opensource/dictIO"
Documentation = "https://dnv-opensource.github.io/dictIO/README.html"
Repository = "https://github.com/dnv-opensource/dictIO.git"
Issues = "https://github.com/dnv-opensource/dictIO/issues"
Changelog = "https://github.com/dnv-opensource/dictIO/blob/main/CHANGELOG.md"
[dependency-groups]
dev = [
"pytest>=9.0",
"pytest-cov>=7.1",
"ruff>=0.15.9",
"pyright>=1.1.408",
"mypy>=1.19.1",
"sourcery>=1.43.0",
"pre-commit>=4.5",
"Sphinx>=9.0",
"sphinx-argparse-cli>=1.21.3",
"sphinx-autodoc-typehints>=3.6",
"sphinxcontrib-mermaid>=2.0",
"myst-parser>=5.0",
"furo>=2025.12",
"jupyter>=1.1.1",
"nbconvert>=7.17",
"types-lxml>=2026.2",
]
[tool.uv]
default-groups = [
"dev",
]
native-tls = true
required-environments = [
"sys_platform == 'win32'",
"sys_platform == 'linux'",
"sys_platform == 'darwin'",
]
[project.scripts]
dictParser = "dictIO.cli.__main__:main"
[tool.mypy]
plugins = []
mypy_path = "stubs"
files = [
"src",
"tests",
"demos",
]
exclude = [
"src/folder_to_be_excluded",
]
check_untyped_defs = true
disable_error_code = [
"misc",
"import-untyped",
]
[tool.pyright]
stubPath = "stubs"
include = [
"src",
"tests",
"demos",
]
exclude = [
"**/node_modules",
"**/__pycache__",
"**/.*",
".venv",
"src/folder_to_be_excluded",
]
typeCheckingMode = "basic"
useLibraryCodeForTypes = true
reportMissingParameterType = "error"
reportUnknownParameterType = "warning"
reportUnknownMemberType = "warning" # consider to set to `false` if you work a lot with matplotlib and pandas, which are both not properly typed and known to trigger this warning
reportMissingTypeArgument = "error"
reportPropertyTypeMismatch = "error"
reportFunctionMemberAccess = "warning"
reportPrivateUsage = "warning"
reportTypeCommentUsage = "warning"
reportIncompatibleMethodOverride = "warning"
reportIncompatibleVariableOverride = "error"
reportInconsistentConstructor = "error"
reportOverlappingOverload = "warning"
reportUninitializedInstanceVariable = "warning"
reportCallInDefaultInitializer = "warning"
reportUnnecessaryIsInstance = "information"
reportUnnecessaryCast = "warning"
reportUnnecessaryComparison = "warning"
reportUnnecessaryContains = "warning"
reportUnusedCallResult = "warning"
reportUnusedExpression = "warning"
reportMatchNotExhaustive = "warning"
reportUntypedFunctionDecorator = "warning"
reportUntypedClassDecorator = "warning"
reportUntypedBaseClass = "error"
reportUntypedNamedTuple = "warning"
reportUnnecessaryTypeIgnoreComment = "information"
# Activate the following rules only locally and temporary, i.e. for a QA session.
# (For server side CI they are considered too strict.)
# reportMissingTypeStubs = true
# reportConstantRedefinition = "warning"
# reportImportCycles = "warning"
# reportImplicitStringConcatenation = "warning"