-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
154 lines (137 loc) · 4.37 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
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
146
147
148
149
150
151
152
153
154
[project]
name = "roseau-load-flow"
version = "0.11.0"
description = "Highly capable three-phase load flow solver"
authors = [
{ name = "Ali Hamdan", email = "[email protected]" },
{ name = "Sébastien Vallet", email = "[email protected]" },
{ name = "Benoît Vinot", email = "[email protected]" },
{ name = "Florent Cadoux", email = "[email protected]" },
{ name = "Louise Muller", email = "[email protected]" },
{ name = "Victor Gouin" },
]
maintainers = [
{ name = "Ali Hamdan", email = "[email protected]" },
]
license = { file = "LICENSE.md" }
readme = "README.md"
classifiers = [
"Development Status :: 3 - Alpha",
# "License :: OSI Approved :: The 3-Clause BSD License (BSD-3-Clause)", # https://github.com/pypa/trove-classifiers/issues/70
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering :: Physics",
]
requires-python = ">=3.10"
dependencies = [
"numpy>=1.21.5",
"pandas>=1.4.0",
"geopandas>=1.0.0",
"shapely>=2.0.0",
"pint>=0.21.0",
"typing-extensions>=4.6.2",
"pyproj>=3.3.0",
"certifi>=2023.5.7",
"platformdirs>=4.0.0",
"roseau-load-flow-engine==0.16.0",
]
[project.urls]
homepage = "https://www.roseautechnologies.com/roseau-load-flow/"
repository = "https://github.com/RoseauTechnologies/Roseau_Load_Flow/"
issues = "https://github.com/RoseauTechnologies/Roseau_Load_Flow/issues/"
documentation = "https://roseau-load-flow.roseautechnologies.com/"
[project.optional-dependencies]
plot = ["matplotlib>=3.7.2"]
graph = ["networkx>=3.0.0"]
[dependency-groups]
dev = [
# Tests
"pytest>=8.0.0",
"pytest-cov>=5.0.0",
"pytest-xdist>=3.1.0",
"coverage[toml]>=7.0.5",
"coverage-conditional-plugin>=0.9.0",
]
doc = [
# Docs
"sphinx>=8.0.2",
"myst-parser>=0.16.1",
"sphinx-math-dollar>=1.2.1",
"sphinx-autoapi>=3.0.0",
"sphinx-copybutton>=0.5.1",
"sphinx-inline-tabs>=2022.1.2b11",
"furo>=2022.9.29",
"sphinxcontrib-googleanalytics>=0.3",
"sphinxcontrib-bibtex>=2.5.0",
"sphinx-sitemap>=2.5.1",
"sphinxext-opengraph>=0.9.1",
"ipython>=8.31.0",
]
[tool.uv]
managed = true
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.sdist]
only-include = ["roseau"]
exclude = ["*tests*", "*conftest.py"]
[tool.hatch.build.targets.wheel]
packages = ["roseau"]
[tool.ruff]
line-length = 120
show-fixes = true
namespace-packages = ["roseau"]
[tool.ruff.lint]
select = ["E", "F", "C90", "W", "B", "UP", "I", "RUF100", "TID", "SIM", "PT", "PIE", "N", "C4", "NPY", "T10", "PTH"]
unfixable = ["B"]
ignore = ["E501", "B024", "N818", "UP038", "PTH123"]
flake8-tidy-imports.ban-relative-imports = "all"
flake8-pytest-style.parametrize-values-type = "tuple"
mccabe.max-complexity = 15
[tool.ruff.format]
docstring-code-format = true
[tool.ruff.lint.per-file-ignores]
"*.ipynb" = ["E402", "F403", "F405"]
[tool.coverage.run]
branch = true
omit = ["roseau/load_flow/__about__.py"]
plugins = ["coverage_conditional_plugin"]
[tool.coverage.coverage_conditional_plugin.rules]
no-cover-if-py-gte-311 = "sys_version_info >= (3, 11)"
no-cover-if-py-lt-311 = "sys_version_info < (3, 11)"
[tool.coverage.paths]
source = ["roseau/load_flow/"]
[tool.coverage.report]
# Skip files with 100% coverage
skip_covered = true
# Regexes for lines to exclude from consideration
exclude_lines = [
# Have to re-enable the standard pragma
"pragma: no-cover",
# Don't complain about missing debug-only code:
"def __repr__",
"if self.debug",
# Don't complain if tests don't hit defensive assertion code:
"raise AssertionError",
"raise NotImplementedError",
# Don't complain if non-runnable code isn't run:
"if 0:",
"if __name__ == .__main__.:",
# Type checking
"if TYPE_CHECKING:",
]
ignore_errors = true
fail_under = 93
[tool.coverage.html]
directory = "htmlcov"
# Pytest
[tool.pytest.ini_options]
addopts = "--color=yes -n=0 --import-mode=importlib"
testpaths = ["roseau/load_flow/"]
filterwarnings = []
markers = ["no_patch_engine"]