Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
104 lines (91 loc) · 2.26 KB
/
Copy pathpyproject.toml
File metadata and controls
104 lines (91 loc) · 2.26 KB
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
[project]
name = "linerate"
description = "Library for computing line ampacity ratings for overhead lines"
authors = [
{name="Statnett Datascience", email="Datascience.Drift@Statnett.no"},
{name="Yngve Mardal Moe", email="yngve.m.moe@gmail.com"},
]
readme = "README.md"
requires-python = ">=3.10"
dynamic = ["version"]
dependencies = [
"numpy",
]
[dependency-groups]
dev = [
"coverage[toml]",
"hypothesis>=6.56.2",
"pre-commit",
"pytest==9.1.1",
"pytest-cov==7.1.0",
"pytest-randomly==5.0.0",
"pyright[nodejs]",
"matplotlib>=3.9.4",
"scipy",
]
docs = [
"sphinx",
"sphinxcontrib-bibtex",
"sphinx-gallery",
"pydata-sphinx-theme",
"matplotlib",
"setuptools",
]
[tool.setuptools_scm]
version_scheme="release-branch-semver"
local_scheme = "no-local-version"
[tool.ruff]
line-length = 100
[tool.ruff.lint]
# extend-select = ["ALL"] # Un-comment to enable all rules
# Allow autofix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = []
# Exclude a variety of commonly ignored directories.
exclude = [
".eggs",
".git",
".ruff_cache",
".venv",
"__pypackages__",
"build",
"dist",
"venv",
]
[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 = ".hypothesis _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 = ["setuptools>=64", "setuptools-scm>=8"]
build-backend = "setuptools.build_meta"
[tool.pyright]
venvPath = "."
venv = ".venv"
[tool.uv]
exclude-newer = "0001-01-01T00:00:00Z" # This has no effect and is included for backwards compatibility when using relative exclude-newer values.
exclude-newer-span = "P3D"