-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
97 lines (85 loc) · 2.4 KB
/
pyproject.toml
File metadata and controls
97 lines (85 loc) · 2.4 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "gridmeta"
dynamic = ["version"]
description = 'A repository for extracting dehydrated metadata for distribution power grid 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 = [
"opendssdirect.py~=0.9.4",
"jsonschema~=4.24.0",
"requests~=2.32.3",
"pydantic~=2.11.5",
"pandas~=2.2.3",
"click~=8.2.1",
"datamodel-code-generator~=0.31.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",
"mdutils~=1.7.0"
]
[project.scripts]
gridmeta = "gridmeta.cli.cli:cli"
[tool.ruff]
exclude = [".git", ".ruff_cache", ".venv", "_build", "build", "dist", "venv"]
line-length = 99
indent-width = 4
target-version = "py311"
[tool.ruff.lint]
select = [
"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"]
exclude = ["docs/doc.py"]
[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://github.com/grid-kitchen/grid-meta"
Issues = "https://github.com/grid-kitchen/grid-meta/issues"
Source = "https://github.com/grid-kitchen/grid-meta"
[tool.hatch.version]
path = "src/gridmeta/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/gridmeta"]
[tool.hatch.build.targets.sdist]
include = ["src/gridmeta"]