-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
99 lines (88 loc) · 2.46 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
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[project]
name = "matpower"
description = 'matpower-pip: A Python Package for Easy Access to MATPOWER Power System Simulation Package'
readme = "README.md"
requires-python = ">=3.8.1"
keywords = []
authors = [
{name = "Muhammad Yasirroni", email = "[email protected]"},
]
maintainers = [
{name = "Muhammad Yasirroni", email = "[email protected]"}
]
classifiers = [
"Programming Language :: Python",
"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 :: Scientific/Engineering :: Mathematics",
]
dependencies = []
dynamic = ["version"]
[project.optional-dependencies]
octave = [
"oct2py>=5.7.0",
]
dev = [
"jupyter>=1.0.0",
"matplotlib>=3.5.3",
"matpowercaseframes>=1.0.7",
"nbmake>=1.3.5",
"numpy>=1.21.6",
"oct2py>=5.7.0",
"openpyxl>=3.1.2",
"pandas>=1.3.5",
"pypglib>=0.0.1",
"pytest>=7.2.0",
"pytest-cov>=4.1.0",
"pytest-xdist>=3.1.0",
"pre-commit>=2.21.0",
"ruff>=0.0.254",
"setuptools>=68.0.0"
]
[project.urls]
Documentation = "https://github.com/yasirroni/matpower-pip#readme"
Issues = "https://github.com/yasirroni/matpower-pip/issues"
Source = "https://github.com/yasirroni/matpower-pip"
[tool.setuptools]
packages = ["matpower"]
[tool.ruff]
fix = true
line-length = 88
lint.select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"C", # flake8-comprehensions
"B", # flake8-bugbear
]
lint.ignore = [
"B90", # support <3.10
"E402", # temporarily due to nbqa did not support [tool.ruff.per-file-ignores]
]
[tool.ruff.lint.per-file-ignores]
"tests/test_core_functionality.py" = ["E501"]
"notebooks/add_new_row.ipynb" = ["E402"]
"notebooks/inspect_mpc.ipynb" = ["E402"]
"notebooks/makeYbus.ipynb" = ["E402"]
"notebooks/plot_cost_curve.ipynb" = ["E402"]
"notebooks/remove_tap.ipynb" = ["E402"]
"notebooks/runpf.ipynb" = ["E402"]
[tool.pytest.ini_options]
testpaths = ["tests", "notebooks"]
norecursedirs = ["hooks", "*.egg", ".eggs", "dist", "build", "docs", ".tox", ".git", "__pycache__", ".ipynb_checkpoints"]
[tool.coverage.run]
source = ["tests", "notebooks"]
[coverage.paths]
source = "matpower"
[coverage.run]
branch = true
[coverage.report]
show_missing = true