-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
97 lines (88 loc) · 2.18 KB
/
Copy pathpyproject.toml
File metadata and controls
97 lines (88 loc) · 2.18 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
[project]
name = "distopf"
version = "1.0.2"
description = "A package for solving unbalanced three-phase distribution system optimal power flow problems."
readme = "README.md"
authors = [
{ name="Nathan Gray", email="nathan.gray@pnnl.gov" },
{ name="Rabayet Sadnan", email="rabayet.sadnan@pnnl.gov"},
{ name="Abodh Poudyal"},
]
requires-python = ">=3.10"
dependencies = [
"cvxpy>=1.7.2",
"networkx>=3.4.2",
"numpy>=2.2.6",
"opendssdirect-py>=0.9.4",
"plotly>=6.3.0",
"scipy>=1.15.3",
"pyomo>=6.9.4",
"pandas>=2.3.3",
"altdss[all]>=0.2.4",
"pyscipopt>=6.0.0",
"highspy>=1.13.0",
]
[project.optional-dependencies]
cim = [
"cim-graph==0.4.1a2",
"gridappsd-python==2025.3.2a13",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[dependency-groups]
dev = [
"jupyter>=1.1.1",
"marimo>=0.15.2",
"mypy>=1.18.2",
"pandas-stubs>=2.3.2.250926",
"pytest>=8.4.2",
"pytest-cov>=7.0.0",
"ruff>=0.12.12",
"scipy-stubs>=1.15.3.0",
"tabulate>=0.9.0",
"ty>=0.0.1a26",
"types-networkx>=3.5.0.20250901",
"types-openpyxl>=3.1.5.20250822",
"types-python-dateutil>=2.9.0.20250822",
]
gurobi = [
"gurobipy>=13.0.2",
]
[tool.mypy]
[[tool.mypy.overrides]]
module = "cimgraph.*"
follow_untyped_imports = true
[tool.ty.src]
exclude = ["src/distopf/pyomo_models"]
[tool.ty.rules]
possibly-missing-attribute = "ignore"
[tool.pytest.ini_options]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"integration: marks tests as integration tests",
"performance: marks tests as performance tests",
"unit: marks tests as unit tests",
]
testpaths = ["tests"]
python_files = "test_*.py"
python_classes = "Test*"
python_functions = "test_*"
addopts = """
--cov=distopf
--cov-report=html
--cov-report=term-missing
--cov-fail-under=48
-v
--tb=short
"""
filterwarnings = [
# The format is action:message:category:module
"ignore::DeprecationWarning:pytz",
]
[tool.coverage.run]
omit = [
# cim_importer requires optional extras (pip install distopf[cim])
# and cannot be exercised in a standard CI environment
"src/distopf/cim_importer/*",
]