-
Notifications
You must be signed in to change notification settings - Fork 11
/
pyproject.toml
259 lines (241 loc) · 7.62 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
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"
[project]
name = "wombat"
dynamic = ["version"]
authors = [{name = "Rob Hammond", email = "[email protected]"}]
readme = {file = "README.md", content-type = "text/markdown"}
description = "Windfarm operations and maintenance cost-benefit analysis tool"
requires-python = ">=3.9, <3.13"
license = {file = "LICENSE"}
dependencies = [
"attrs>=21",
"numpy>=1.21",
"scipy>=1.8",
"pandas>=2",
"polars>=0.20.4",
"pyarrow>=10",
"jupyterlab>=3",
"simpy>=4.0.1",
"pyyaml>=6",
"geopy>=2.3",
"networkx>=2.7",
"matplotlib>=3.3",
"types-attrs>=19",
"types-typed-ast>=1.5",
"types-PyYAML>=6",
"types-python-dateutil>=2.8",
]
keywords = [
"python3",
"wind-energy",
"operations-maintenance",
"discrete-event-simulation",
"simulation",
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Intended Audience :: Other Audience",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"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 :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]
[project.urls]
source = "https://github.com/WISDEM/WOMBAT"
documentation = "https://wisdem.github.io/WOMBAT/"
issues = "https://github.com/WISDEM/WOMBAT/issues"
changelog = "https://github.com/WISDEM/WOMBAT/blob/main/CHANGELOG.md"
[project.optional-dependencies]
dev = [
"pre-commit>=2.20",
"isort>=5.10",
"pytest>=7",
"pytest-cov>=4",
"mypy==0.991",
"ruff>=0.2",
"pyupgrade",
]
docs = [
"jupyter-book>=0.15",
"myst-nb>=0.16",
"myst-parser>=0.17",
"linkify-it-py>=2",
"sphinx-autodoc-typehints",
"sphinxcontrib-autoyaml",
"sphinxcontrib-bibtex>=2.4",
"sphinxcontrib-spelling>=7",
]
all = ["wombat[dev,docs]"]
[tool.setuptools]
include-package-data = true
[tool.setuptools.packages.find]
include = ["wombat", "library", "*.yaml", "*.csv"]
exclude = ["*.tests", "*.tests.*", "tests.*", "tests"]
[tool.setuptools.dynamic]
version = {attr = "wombat.__version__"}
[tool.coverage.run]
# Coverage.py configuration file
# https://coverage.readthedocs.io/en/latest/config.html
branch = true
source = "wombat/*"
omit = [
"setup.py",
"tests/*"
]
[tool.pytest.ini_options]
addopts = "--strict-markers --pdbcls=tests:Debugger -r sxX --cov=wombat --cov-report=html --cov-report=term-missing:skip-covered --no-cov-on-fail --ignore=setup.py"
testpaths = "tests"
cache_dir = ".cache"
filterwarnings = [
"ignore::DeprecationWarning:simpy.*:",
"ignore::DeprecationWarning:pkg_resources.*:",
]
[tool.isort]
skip = [
"wombat/__init__.py",
"wombat/core/__init__.py",
"wombat/utilities/__init__.py",
"wombat/windfarm/__init__.py",
"wombat/windfarm/system/__init__.py",
]
multi_line_output = 3
sections = [
"FUTURE",
"STDLIB",
"THIRDPARTY",
"FIRSTPARTY",
"LOCALFOLDER",
]
known_third_party = [
"attrs",
"numpy",
"networkx",
"pandas",
"pytest",
"scipy",
"simpy",
]
known_first_party = "wombat"
known_local_folder = "tests"
combine_as_imports = true
force_grid_wrap = 0
include_trailing_comma = true
use_parentheses = true
length_sort = true
lines_after_imports = 2
line_length = 88
[tool.numpydoc_validation]
checks = [
"all",
"ES01",
"SA01",
"EX01",
]
exclude = ["*__pycache__"]
[tool.ruff]
src = ["wombat", "tests"]
line-length = 88
target-version = "py39"
fix = true
[tool.ruff.lint]
# See https://github.com/charliermarsh/ruff#supported-rules
# for rules included and matching to prefix.
# TODO: "FBT", "B", "PIE, "T20", "SIM", "PTH", "PD", "I", "PL"
ignore-init-module-imports = true
select = ["F", "E", "W", "C4", "D", "UP"]
# D205: not using summary lines and descriptions, just descriptions
# D401: don't believe enough in imperative mode to make all the changes currently
ignore = ["D205", "D401"]
# Allow autofix for all enabled rules (when `--fix`) is provided.
fixable = ["F", "E", "W", "C4", "D", "UP"]
unfixable = []
# Exclude a variety of commonly ignored directories.
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",
]
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.lint.per-file-ignores]
"setup.py" = ["D104"]
"library/__init__.py" = ["D104"]
"library/code_comparison/__init__.py" = ["D104"]
"library/code_comparison/dinwoodie/__init__.py" = ["D104"]
"library/code_comparison/dinwoodie/cables/__init__.py" = ["D104"]
"library/code_comparison/dinwoodie/project/__init__.py" = ["D104"]
"library/code_comparison/dinwoodie/project/config/__init__.py" = ["D104"]
"library/code_comparison/dinwoodie/project/plant/__init__.py" = ["D104"]
"library/code_comparison/dinwoodie/project/port/__init__.py" = ["D104"]
"library/code_comparison/dinwoodie/results/__init__.py" = ["D104"]
"library/code_comparison/dinwoodie/substations/__init__.py" = ["D104"]
"library/code_comparison/dinwoodie/turbines/__init__.py" = ["D104"]
"library/code_comparison/dinwoodie/vessels/__init__.py" = ["D104"]
"library/code_comparison/dinwoodie/weather/__init__.py" = ["D104"]
"library/code_comparison/iea26/__init__.py" = ["D104"]
"library/code_comparison/iea26/cables/__init__.py" = ["D104"]
"library/code_comparison/iea26/project/__init__.py" = ["D104"]
"library/code_comparison/iea26/project/config/__init__.py" = ["D104"]
"library/code_comparison/iea26/project/plant/__init__.py" = ["D104"]
"library/code_comparison/iea26/project/port/__init__.py" = ["D104"]
"library/code_comparison/iea26/results/__init__.py" = ["D104"]
"library/code_comparison/iea26/substations/__init__.py" = ["D104"]
"library/code_comparison/iea26/turbines/__init__.py" = ["D104"]
"library/code_comparison/iea26/vessels/__init__.py" = ["D104"]
"library/code_comparison/iea26/weather/__init__.py" = ["D104"]
"library/corewind/__init__.py" = ["D104"]
"library/corewind/cables/__init__.py" = ["D104"]
"library/corewind/project/__init__.py" = ["D104"]
"library/corewind/project/config/__init__.py" = ["D104"]
"library/corewind/project/plant/__init__.py" = ["D104"]
"library/corewind/project/port/__init__.py" = ["D104"]
"library/corewind/results/__init__.py" = ["D104"]
"library/corewind/substations/__init__.py" = ["D104"]
"library/corewind/turbines/__init__.py" = ["D104"]
"library/corewind/vessels/__init__.py" = ["D104"]
"library/corewind/weather/__init__.py" = ["D104"]
"tests/library/__init__.py" = ["D104"]
"tests/library/cables/__init__.py" = ["D104"]
"tests/library/project/__init__.py" = ["D104"]
"tests/library/project/config/__init__.py" = ["D104"]
"tests/library/project/plant/__init__.py" = ["D104"]
"tests/library/substations/__init__.py" = ["D104"]
"tests/library/turbines/__init__.py" = ["D104"]
"tests/library/vessels/__init__.py" = ["D104"]
"tests/library/weather/__init__.py" = ["D104"]
"wombat/__init__.py" = ["F401"]
"wombat/core/__init__.py" = ["F401"]
"wombat/utilities/__init__.py" = ["F401"]
"wombat/windfarm/__init__.py" = ["F401"]
"wombat/windfarm/system/__init__.py" = ["F401"]
[tool.ruff.lint.pydocstyle]
convention = "numpy"