-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathpyproject.toml
More file actions
145 lines (131 loc) · 3.34 KB
/
pyproject.toml
File metadata and controls
145 lines (131 loc) · 3.34 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
[build-system]
requires = ["setuptools >= 61.0"]
build-backend = "setuptools.build_meta"
[project]
name = "NREL-erad"
dynamic = ["version"]
description = "Graph based scalable tool for computing energy resilience metrics for distribution systems."
readme = "README.md"
requires-python = ">=3.10"
authors = [
{ name = "Aadil Latif", email = "aadil.altif@nrel.gov" },
{ name = "Kapil Duwadi", email = "kapil.duwadi@nrel.gov" },
{ name = "Kwami Sedzro", email = "sherinann.abraham@nrel.gov" },
{ name = "Sherin Ann Abraham", email = "kwami.sedzro@nrel.gov" },
{ name = "Bryan Palmintier", email = "bryan.palmintier@nrel.gov" },
]
maintainers = [
{ name = "Aadil Latif", email = "Aadil.Latif@nrel.gov" },
]
keywords = [
"Distribution",
"Earthquake",
"Energy",
"Fire",
"Flooding",
"Power",
"Python",
"Resilience",
"Systems",
]
classifiers = [
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
dependencies = [
"grid-data-models==2.3.0",
"gdmloader",
"geopandas",
"requests",
"elevation",
"shapely",
"pandas",
"pyhigh",
"geopy",
"scipy",
"sqlmodel",
"loguru>=0.7.0",
"mcp>=1.0.0",
"typer>=0.9.0",
"rich>=13.0.0"
]
[project.optional-dependencies]
dev = [
"black",
"mkdocs",
"mkdocs-jupyter",
"mkdocs-material",
"mkdocstrings[python]",
"pylint",
"pytest",
"pytest-asyncio",
"pytest-cov",
"ruff"
]
doc = [
"sphinx",
"pydata-sphinx-theme",
"myst-parser",
"autodoc_pydantic",
"sphinxcontrib-mermaid",
"jupyter-book==2.1.2",
]
[project.urls]
Homepage = "https://github.com/NLR-Distribution-Suite/erad"
[project.scripts]
erad = "erad.cli:main"
erad-mcp = "erad.mcp:main"
[tool.ruff]
# Exclude a variety of commonly ignored directories.
exclude = [
".git",
".ruff_cache",
".venv",
"_build",
"build",
"dist",
"env",
"venv",
]
ignore-init-module-imports = true
line-length = 99
indent-width = 4
target-version = "py311"
[tool.ruff.lint]
# Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default.
select = [
"C901", # McCabe complexity
"E4", # Subset of pycodestyle (E)
"E7",
"E9",
"F", # Pyflakes
"W", # pycodestyle warnings
]
ignore = []
# Allow fix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = []
[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"
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["E402", "F401"]
"**/{tests,docs,tools}/*" = ["E402"]
[tool.setuptools.dynamic]
version = {attr = "erad.__version__"}
[tool.pytest.ini_options]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
markers = [
"integration: marks tests as integration tests (deselect with '-m \"not integration\"')",
]