-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathpyproject.toml
119 lines (107 loc) · 2.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
# SPDX-FileCopyrightText: Contributors to the Power Grid Model project <powergridmodel@lfenergy.org>
#
# SPDX-License-Identifier: MPL-2.0
[build-system]
requires = [
"setuptools",
"wheel"
]
build-backend = "setuptools.build_meta"
[project]
name = "power-grid-model-io"
authors = [{name = "Contributors to the Power Grid Model project", email = "powergridmodel@lfenergy.org"}]
description = "Power Grid Model Input/Output"
readme = "README.md"
keywords = ["power grid model", "input/output", "conversions"]
license = {text = "MPL-2.0"}
classifiers=[
"Programming Language :: Python :: 3",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS",
"Topic :: Scientific/Engineering :: Physics",
]
requires-python = ">=3.10"
dependencies = [
"numpy>=1.20",
"openpyxl",
"pandas",
"power_grid_model>=1.8",
"pyyaml",
"structlog",
"tqdm",
]
dynamic = ["version"]
[project.optional-dependencies]
dev = [
"pandapower>2.11.1",
"pre-commit",
"pylint",
"pytest",
"pytest-cov",
"pydantic>2", # Used in unit tests
"numba",
]
examples = [
"power-grid-model>1.9.80",
"pandapower>2.11.1",
"pyarrow", # Pyarrow support for Python 3.12 scheduled for 14.0.0: https://github.com/apache/arrow/issues/37880
]
doc = [
"sphinx",
"myst-nb",
"sphinx_rtd_theme",
"readthedocs-sphinx-search",
"sphinx-hoverxref",
"numpydoc",
]
[project.urls]
Home-page = "https://lfenergy.org/projects/power-grid-model/"
GitHub = "https://github.com/PowerGridModel/power-grid-model-io"
Documentation = "https://power-grid-model-io.readthedocs.io/en/stable/"
Mailing-list = "https://lists.lfenergy.org/g/powergridmodel"
Discussion = "https://github.com/orgs/PowerGridModel/discussions"
[tool.setuptools.packages.find]
where = ["src"]
namespaces = false
[tool.setuptools.dynamic]
version = {file = "PYPI_VERSION"}
[tool.setuptools.package-data]
power_grid_model_io = ["config/**/*.yaml", "py.typed"]
[tool.pytest.ini_options]
testpaths = ["tests/unit"]
addopts = ["--cov=power_grid_model_io", "--cov-report=term", "--cov-report=html:cov_html", "--cov-fail-under=98.5"]
[tool.black]
line-length = 120
target-version = ["py310", "py311"]
[tool.isort]
profile = "black"
line_length = 120
[tool.pylint]
max-line-length = 120
ignore-paths = [
"docs/",
"examples/",
"tests/",
"setup.py",
]
disable = [
"fixme", # allow todos
]
good-names=[
"ex", # exception
"i", # iterator or current
"p", # active power
"q", # reactive power
"s", # power (p + q)
"v", # voltage
]
[tool.mypy]
follow_imports = "silent"
ignore_missing_imports = true
show_column_numbers = true
non_interactive = true
install_types = true