-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
129 lines (109 loc) · 3.23 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
[project]
name = "mechaphlowers"
version = "0.1.0"
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"
license = "MPL-2.0"
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",
]
[project.urls]
Homepage = "https://github.com/phlowers/mechaphlowers"
Issues = "https://github.com/phlowers/mechaphlowers/issues"
Documentation = "https://phlowers.readthedocs.io/projects/mechaphlowers/"
[tool.poetry]
name = "mechaphlowers"
version = "0.1.0"
description = "Physical calculation package for the mechanics and geometry of power lines"
authors = ["Adrien Goeller","Aimee Quinaou", "Jeremy Wang"]
readme = "README.md"
[tool.poetry.dependencies]
python = ">=3.10,<3.13"
numpy = "<=2.0.2"
pandas = "<=2.2.3"
pandera = "<=0.21.1"
scipy = "<=1.14.1"
plotly = "<=5.24.1"
multimethod = "<2.0"
[tool.poetry.group.dev.dependencies]
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"
poethepoet = "^0.29.0"
pandas-stubs = "^2.2.3.241009"
[tool.poetry.group.test.dependencies]
pytest = "^8.3.2"
pytest-cov = "^5.0.0"
[tool.poetry.group.docs.dependencies]
mkdocs = "^1.6.1"
mkdocstrings = {extras = ["python"], version = "^0.26.2"}
mkdocs-material = "^9.5.43"
mkdocs-jupyter = "^0.25.1"
### Tools configuration
[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"
]
[tool.poe.tasks]
check-format = "poetry run ruff format --check"
format = "poetry run ruff format"
lint = "poetry run ruff check"
lint-fix = "poetry run ruff check --fix"
typing = "poetry run mypy ."
test = "poetry run pytest"
test-coverage = "poetry run pytest --cov-report xml --cov=mechaphlowers test/"
checks = [
"check-format",
"lint",
"typing",
"test",
]
[tool.poe.tasks.doc]
help = "serve the library documentation"
shell = """
mkdocs serve -a localhost:8001
"""
## 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
## Task configurator
[tool.poe]
verbosity = -1
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"