Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
181 lines (166 loc) · 4.72 KB
/
Copy pathpyproject.toml
File metadata and controls
181 lines (166 loc) · 4.72 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.sdist]
include = [
"src/pythonfmu3",
"resources/*.dll",
"resources/*.dylib",
"resources/*.so",
"examples/*.fmu",
"examples/*.py",
"pyproject.toml",
"pytest.ini",
"ruff.toml",
"uv.lock",
]
[tool.hatch.build.targets.wheel]
packages = [
"src/pythonfmu3",
]
[tool.hatch.metadata]
allow-direct-references = true
[project]
name = "pythonfmu3"
version = "0.4.0"
description = "A lightweight framework that enables the packaging of Python3.x code as co-simulation FMUs with (partial) FMI3 features support."
readme = "README.md"
requires-python = ">= 3.12"
license = { file = "LICENSE" }
authors = [
{ name = "Lars Ivar Hatledal"},
{ name = "Stephen Smith" },
{ name = "Siegfried Eisinger", email = "siegfried.eisinger@dnv.com" },
]
keywords = [
"FMI", "simulation", "co-simulation", "FMI3"
]
classifiers = [
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: C++",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
# "Operating System :: MacOS",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Intended Audience :: End Users/Desktop",
"Topic :: Scientific/Engineering",
"Topic :: Software Development :: Libraries :: Python Modules",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
]
dependencies = [
"fmpy>=0.3.21",
# "pyqt6>=6.10",
"xmlschema>=4.3",
]
[project.optional-dependencies]
tests = [
"fmpy",
"pytest",
"scipy",
]
[project.scripts]
pythonfmu3 = "pythonfmu3.__main__:cli_main"
[project.urls]
Homepage = "https://github.com/stephensmith25/PythonFMU3"
Documentation = "https://github.com/stephensmith25/PythonFMU3/README.html"
Repository = "https://github.com/StephenSmith25/PythonFMU3.git"
[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",
"scipy-stubs>=1.17.1",
"matplotlib>=3.10",
"rope>=1.15.0",
]
[tool.uv]
default-groups = [
"dev",
]
native-tls = true
required-environments = [
"sys_platform == 'win32'",
"sys_platform == 'linux'",
# "sys_platform == 'darwin'",
]
[tool.mypy]
plugins = []
mypy_path = "stubs"
files = [
"src",
"tests",
"examples",
]
[tool.pytest]
# addopts = ["--strict-markers"]
markers = [
"integration: marks integration tests",
"doc: marks documentation tests"
]
[tool.pyright]
stubPath = "stubs"
include = [
"src",
"tests",
"examples",
]
exclude = [
"**/node_modules",
"**/__pycache__",
"**/.*",
".venv",
"examples", # python code here comes from other sources
"tests/test_working_directory",
]
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"