forked from NREL/EMeRGE
-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
112 lines (98 loc) · 2.31 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
100
101
102
103
104
105
106
107
108
109
110
111
112
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "NREL-emerge"
version = "2.0.0"
description = "Emerging technologies Management and Risk evaluation on distributions Grid Evolution"
readme = "README.md"
license = ""
requires-python = ">=3.11"
authors = [
{ name = "Kapil Duwadi", email = "[email protected]" },
]
keywords = [
"DER",
"Distribution",
"System",
"analysis",
"impact",
"management",
"risk",
"technologies",
]
classifiers = [
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.11",
]
dependencies = [
"click",
"json5",
"networkx",
"OpenDSSDirect.py==0.8.4",
"pandas",
"polars",
"pyarrow",
"pydantic",
"pyyaml",
"sqlmodel",
"psutil",
"loguru"
]
[project.optional-dependencies]
dev = ["pre-commit", "pytest", "pytest-cov", "ruff"]
doc = [
"sphinx",
"pydata-sphinx-theme",
"myst-parser",
"autodoc_pydantic",
"sphinxcontrib-mermaid",
]
[project.scripts]
emerge = "emerge.cli.cli:cli"
[project.urls]
Documentation = "https://github.com/NREL/EMeRGE#readme"
Issues = "https://github.com/NREL/EMeRGE/issues"
Source = "https://github.com/NREL/EMeRGE/grid-data-models"
[tool.ruff]
# Exclude a variety of commonly ignored directories.
exclude = [".git", ".ruff_cache", ".venv", "_build", "build", "dist", "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.hatch.metadata]
allow-direct-references = true
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["E402", "F401"]
"**/{tests,docs,tools}/*" = ["E402"]
[tool.hatch.build.targets.sdist]
include = [
"/emerge",
]
[tool.hatch.build.targets.wheel]
packages = [
"emerge"
]