Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
82 lines (75 loc) · 1.78 KB
/
Copy pathpyproject.toml
File metadata and controls
82 lines (75 loc) · 1.78 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
[project]
name = "pwrs"
version = "0.1.3"
description = "Python package for power system simulation, ported from MATPOWER."
readme = "README.md"
authors = [
{ name = "Liangyu Zhang", email = "zhly@zju.edu.cn" }
]
requires-python = ">=3.12"
dependencies = [
"matplotlib>=3.9.0",
"numpy>=2.2.0",
"scipy>=1.14.0",
]
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Operating System :: OS Independent",
]
license = "BSD-3-Clause"
license-files = ["LICENSE"]
[dependency-groups]
dev = [
"pyinstrument>=5.1.2",
"pyright>=1.1.390",
"pytest>=8.4.2",
"pytest-html>=4.2.0",
"pytest-xdist>=3.8.0",
"ruff>=0.15.7",
"nbklu>=0.3.0",
"pyomo>=6.10.0",
"cyipopt>=1.7.0",
"ipython>=8.39.0",
"tqdm>=4.67.0",
]
all = [
"clarabel>=0.11.1",
"cvxpy>=1.7.5",
"cyipopt>=1.7.0",
"highspy>=1.12.0",
"mosek>=11.2.2",
"nbklu>=0.3.0",
"openpyxl>=3.1.5",
"pypardiso>=0.4.7",
"pyomo>=6.10.0",
"scikit-umfpack>=0.4.2",
"scs>=3.2.11",
]
docs = [
"myst-parser>=4.0.1",
"numpydoc>=1.10.0",
"pydata-sphinx-theme>=0.19.0",
"sphinx>=8.1.3",
]
[build-system]
requires = ["uv_build>=0.10.4,<0.11.0"]
build-backend = "uv_build"
[tool.uv.extra-build-dependencies]
scikit-umfpack = ["swig>=4.2"]
[tool.pytest.ini_options]
addopts = '-m "not slow"'
markers = [
"quick: fast regression tests intended for frequent local runs",
"slow: long-running parity or large-case regression tests",
]
[tool.ruff]
extend-exclude = ["tests/.cache"]
target-version = "py312"
[tool.ruff.lint]
extend-select = ["UP040", "UP046", "UP047"]
[tool.pyright]
include = ["src/pwrs", "tests/typing"]
pythonVersion = "3.12"
typeCheckingMode = "basic"