-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
138 lines (121 loc) · 3.96 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
[project]
name = "roseau-load-flow-single"
version = "0.2.0-alpha"
description = "Highly capable single-phase load flow solver"
authors = [
{ name = "Ali Hamdan", email = "ali.hamdan@roseautechnologies.com" },
{ name = "Sébastien Vallet", email = "sebastien.vallet@roseautechnologies.com" },
{ name = "Benoît Vinot", email = "benoit.vinot@roseautechnologies.com" },
{ name = "Florent Cadoux", email = "florent.cadoux@roseautechnologies.com" },
]
maintainers = [
{ name = "Ali Hamdan", email = "ali.hamdan@roseautechnologies.com" },
]
readme = "README.md"
license = { file = "LICENSE.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.17.0-alpha",
# "roseau-load-flow==0.12.0-alpha",
"roseau-load-flow @ git+https://github.com/RoseauTechnologies/Roseau_Load_Flow@develop",
]
[project.urls]
repository = "https://github.com/RoseauTechnologies/Roseau_Load_Flow_Single/"
issues = "https://github.com/RoseauTechnologies/Roseau_Load_Flow_Single/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",
"networkx>=3.4.2",
"matplotlib>=3.9.2",
]
[tool.uv]
managed = true
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.metadata]
allow-direct-references = true # Only needed if rlf is installed from git
[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", "T201"]
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 = false
omit = ["roseau/load_flow_single/__about__.py"]
source = ["roseau/load_flow_single/"]
[tool.coverage.paths]
source = ["roseau/load_flow_single/"]
[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_single/"]
filterwarnings = []
markers = ["no_patch_engine"]