-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
107 lines (92 loc) · 2.7 KB
/
pyproject.toml
File metadata and controls
107 lines (92 loc) · 2.7 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
98
99
100
101
102
103
104
105
106
107
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "grid_reducer"
dynamic = ["version"]
description = 'A repository for performing network reduction on distribution network model.'
readme = "README.md"
requires-python = ">=3.11"
license = "BSD-3-Clause"
keywords = []
authors = [
{ name = "Kapil Duwadi", email = "kapil.duwadi@pnnl.gov" },
{ name = "Kaustav Bhattacharjee", email = "kaustav.bhattacharjee@pnnl.gov"},
{ name = "Alexander Anderson", email="Alexander.Anderson@pnnl.gov"},
{ name = "Rabayet Sadnan", email="rabayet.sadnan@pnnl.gov"}
]
classifiers = [
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
dependencies = [
"networkx~=3.5",
"OpenDSSDirect.py~=0.9.4",
"matplotlib~=3.10.3",
"fsspec~=2025.5.1",
"s3fs~=2025.5.1",
"pydantic~=2.11.5",
"pint~=0.24.4",
"click~=8.2.1",
"scipy~=1.15.3",
"geopandas~=1.1.0",
"mapclassify~=2.9.0",
"rich~=14.0.0",
"tqdm~=4.67.1",
"scikit-learn~=1.7.2",
]
[project.optional-dependencies]
dev = [
"pre-commit~=4.2.0",
"pytest~=9.0.1",
"ruff~=0.11.12",
"pytest-mock~=3.14.1",
"pytest-cov~=7.0.0"
]
doc = [
"mkdocs-material~=9.6.14",
"mike~=2.1.3"
]
[tool.ruff]
exclude = [".git", ".ruff_cache", ".venv", "_build", "build", "dist", "venv", "altdss"]
line-length = 99
indent-width = 4
target-version = "py311"
[tool.ruff.lint]
select = [
"C901", # McCabe complexity
"E4", # imports formatting, wrong import spacing or grouping
"E7", # indentation issues
"E9", # runtime syntax errors
"F", # Pyflakes e.g. unused imports, undefined variables, redefined functions
"W", # minor style line line breaks, training whitespaces
"B", # flake8-bugbear
]
ignore = ["C901"]
per-file-ignores = { "__init__.py" = ["F401"] }
[project.scripts]
grid = "grid_reducer.cli.cli:cli"
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
docstring-code-format = true
docstring-code-line-length = "dynamic"
[project.urls]
Documentation = "https://grid-kitchen.github.io/grid-reducer/latest/"
Issues = "https://github.com/Grid-Kitchen/grid-reducer/issues"
Source = "https://github.com/Grid-Kitchen/grid-reducer"
[tool.hatch.version]
path = "src/grid_reducer/version.py"
[tool.hatch.metadata]
allow-direct-references = true
[tool.pytest.ini_options]
pythonpath = "src"
testpaths = ["tests"]
addopts = "-p no:faulthandler"
[tool.hatch.build.targets.wheel]
packages = ["src/grid_reducer"]
[tool.hatch.build.targets.sdist]
include = ["src/grid_reducer"]