-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
111 lines (93 loc) · 2.64 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
[project]
name = "mechaphlowers"
dynamic = ["version"]
description = "Physical calculation package for the mechanics and geometry of power lines"
authors = [{name = "Adrien Goeller"}, {name = "Aimee Quinaou"}, {name = "Jeremy Wang"}]
readme = "README.md"
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)",
"Natural Language :: English",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Operating System :: OS Independent",
]
requires-python = ">=3.10,<3.13"
dependencies = [
"numpy<=2.0.2",
"pandas<=2.2.3",
"pandera<=0.21.1",
"scipy<=1.14.1",
"plotly<=5.24.1",
"multimethod<2.0",
]
[project.urls]
Homepage = "https://github.com/phlowers/mechaphlowers"
Issues = "https://github.com/phlowers/mechaphlowers/issues"
Documentation = "https://phlowers.readthedocs.io/projects/mechaphlowers/"
[project.optional-dependencies]
[dependency-groups]
dev = [
"ruff==0.6.1",
"mypy==1.11.2",
"ipython==8.26.0",
"ipykernel==6.29.5",
"pytest==8.3.2",
"pytest-cov==5.0.0",
"unittest-xml-reporting==3.2.0",
"pandas-stubs==2.2.3.241009",
]
test = [
"pytest==8.3.2",
"pytest-cov==5.0.0",
]
docs = [
"mkdocs==1.6.1",
"mkdocstrings[python]==0.26.2",
"mkdocs-material==9.5.43",
"mkdocs-jupyter==0.25.1"
]
all = [
{ include-group = 'dev' },
{ include-group = 'docs' },
{ include-group = 'test' },
]
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
### Tools configuration
[tool.pdm]
version = { source = "scm", version_format = "pdm_build:format_version"}
distribution = true
[tool.ruff]
target-version = "py311"
line-length = 79
[tool.ruff.format]
# Enable reformatting of code snippets in docstrings.
docstring-code-format = true
docstring-code-line-length = 79
indent-style = "tab"
quote-style = "preserve"
[tool.ruff.lint]
# Enable the isort rules.
extend-select = ["I"]
[tool.mypy]
exclude = [
"virtualenv", ".venv*", "build", "dist", "site-packages", "tests", "docs", "doc", "examples", "example"
]
## Test framework
[tool.pytest.ini_options]
junit_family = "xunit2"
filterwarnings = [
"ignore::DeprecationWarning",
# Following warning seems to come from an issue in pandera,
# see https://github.com/unionai-oss/pandera/issues/1845
'ignore:use `parametric(<base>, <func>)` as a type instead',
]
[tool.coverage.run]
source = ['src']
relative_files = true