-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
100 lines (89 loc) · 2.2 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
[tool.poetry]
name = "linerate"
version = "1.0.0"
description = "Library for computing line ampacity ratings for overhead lines"
authors = ["Statnett Datascience <[email protected]>", "Yngve Mardal Moe <[email protected]>"]
repository = "https://github.com/statnett/linerate.git"
readme = "README.md"
[tool.poetry.dependencies]
python = ">=3.9,<3.13"
numpy = "*"
scipy = "*"
numba = ">=0.56.4"
pygeodesy = "*"
[tool.poetry.dev-dependencies]
black = "24.10.0"
coverage = { version = "*", extras = ['toml'] }
flake8 = "7.1.1"
flake8-bugbear = "24.10.31"
hypothesis = ">= 6.56.2"
isort = "5.13.2"
pre-commit = "*"
pytest = "8.3.3"
pytest-cov = "6.0.0"
pytest-randomly = "3.16.0"
[tool.poetry.group.docs]
optional = true
[tool.poetry.group.docs.dependencies]
sphinx = "^7.0.0"
sphinxcontrib-bibtex = "^2.5.0"
sphinx-gallery = "^0.18.0"
pydata-sphinx-theme = "^0.16.0"
matplotlib = "^3.6.0"
setuptools = "^75.0.0"
[tool.poetry-dynamic-versioning]
enable = true
vcs = "git"
style = "semver"
pattern = "^(?P<base>\\d+\\.\\d+\\.\\d+)(-?((?P<stage>[a-zA-Z]+)\\.?(?P<revision>\\d+)?))?$"
[tool.isort]
profile = "black"
line_length = 100
known_first_party = []
[tool.black]
line-length = 100
include = '\.pyi?$'
exclude = '''
/(
\.git
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
| profiling
)/
'''
[tool.coverage.report]
# Regexes for lines to exclude from consideration
exclude_lines = [
"pragma: no cover",
"raise AssertionError",
"raise NotImplementedError",
"if verbose:",
"if 0:",
"if False:",
]
skip_covered = true
show_missing = true
precision = 2
[tool.coverage.run]
branch = true
source = ["linerate"]
[tool.pytest.ini_options]
log_file = "pytest.log"
log_level = "DEBUG"
log_file_format = "%(asctime)s - %(name)s - %(levelname)s: %(message)s"
norecursedirs = "_build tmp* __pycache__ src prof wheel_files"
markers = [
"integration: Mark test as an integration test",
]
filterwarnings = [
"ignore:PyArray_GetNumericOps.*",
"ignore:PyArray_SetNumericOps.*",
]
[build-system]
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning"]
build-backend = "poetry.core.masonry.api"