-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyproject.toml
110 lines (98 loc) · 2.68 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
# SPDX-FileCopyrightText: Contributors to the Power Grid Model project <[email protected]>
#
# SPDX-License-Identifier: MPL-2.0
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "power-grid-model-ds"
authors = [
{ name = "Contributors to the Power Grid Model project", email = "[email protected]" },
]
description = "Power Grid Model extension which provides a grid data structure for simulation and analysis"
readme = "README.md"
keywords = ["power grid model"]
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.11,<3.14"
dependencies = ["power-grid-model>=1.7", "rustworkx>= 0.15.1", "numpy>=1.21"]
dynamic = ["version"]
[project.optional-dependencies]
pandas = ["pandas>=2.2.1"]
dev = [
"pylint>=3.1.0",
"pytest>=8.1.1",
"coverage>=7.4.4",
"black>=24.3.0",
"ruff>=0.3.5",
"isort>=5.13.2",
"mypy>=1.9.0",
"pre-commit>=4",
]
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-ds"
Documentation = "https://power-grid-model-ds.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.pylint.messages_control]
disable = [
"logging-fstring-interpolation", # allows usage of f-strings in logging
"missing-module-docstring",
"too-few-public-methods",
]
good-names = ["id"]
extension-pkg-allow-list = ["rustworkx"]
max-parents = 15
max-line-length = 120
[tool.ruff]
output-format = "github"
line-length = 120
show-fixes = true
[tool.ruff.lint]
select = [
# pycodestyle
"E",
# Pyflakes
"F",
# # pyupgrade
# "UP",
# # flake8-bugbear
# "B",
# # flake8-simplify
# "SIM",
# isort
"I",
# Numpy 2.0 downstream : https://numpy.org/devdocs/numpy_2_0_migration_guide.html
"NPY201",
]
# Allow fix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = []
[tool.mypy]
disable_error_code = ["assignment", "import-untyped"]
[tool.coverage.run]
relative_files = true
branch = true