-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
83 lines (72 loc) · 1.79 KB
/
Copy pathpyproject.toml
File metadata and controls
83 lines (72 loc) · 1.79 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
[project]
name = "nopywer"
version = "1.0.0"
description = "Power grid analysis and optimization tool for festival sites"
requires-python = ">=3.12"
license = "GPL-3.0-or-later"
dependencies = [
"fastapi>=0.135",
"networkx>=3.6",
"numpy>=1.26",
"odfpy>=1.4",
"pandas>=2.3",
"pyproj>=3.7",
"typer>=0.24",
"uvicorn>=0.41",
]
[project.optional-dependencies]
pandapower = [
# Pinned to the merge commit of e2nIEE/pandapower#2860 ("Prepare for
# Pandas 3.0") which lands the CoW / read-only fix needed by `runpp`
# under pandas >= 2.3. Released 3.4.0 (2026-02-09) is one day too old.
# Switch back to a PyPI version constraint once 3.4.1 ships.
# Background: https://github.com/e2nIEE/pandapower/pull/2860
"pandapower @ git+https://github.com/e2nIEE/pandapower.git@472d8294be2ad56fdb62e439046e802609478bd1",
]
modern = ["pandas>=3.0", "numpy>=2.4"]
[dependency-groups]
dev = [
"httpx",
"pre-commit>=4.5",
"pytest>=9.0",
"ruff>=0.15",
]
[project.scripts]
nopywer-analyze = "nopywer.cli:app"
nopywer-server = "nopywer.api:run"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.uv]
conflicts = [
[
{ extra = "modern" },
{ extra = "pandapower" },
],
]
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.build]
include = ["src/nopywer/frontend/**/*"]
[tool.hatch.build.targets.wheel]
packages = ["src/nopywer"]
[tool.ruff]
line-length = 100
[tool.ruff.lint]
select = [
"F", # pyflakes
"E", # pycodestyle errors
"W", # pycodestyle warnings
"I", # isort
"UP", # pyupgrade
]
[tool.ruff.lint.isort]
section-order = [
"future",
"standard-library",
"third-party",
"first-party",
"local-folder",
]
combine-as-imports = true
known-first-party = ["nopywer"]