-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathpyproject.toml
More file actions
154 lines (141 loc) · 3.33 KB
/
Copy pathpyproject.toml
File metadata and controls
154 lines (141 loc) · 3.33 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
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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
# SPDX-FileCopyrightText: Contributors to the Transformer Thermal Model project
#
# SPDX-License-Identifier: MPL-2.0
[project]
name = "transformer-thermal-model"
version = "0.6.1"
description = "Thermal model for transformers"
authors = [{ name = "Contributors to the Transformer Thermal Model project" }]
requires-python = ">=3.11, <4.0"
readme = "README.md"
classifiers = [
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
]
dependencies = [
"pandas~=3.0",
"numpy>=2.2.5,<3",
"pydantic>=2.11.1,<3",
]
[dependency-groups]
dev = [
"pytest>=9.0.3,<10",
"ruff>=0.15.15,<0.16",
"mypy>=2.0.0",
"pytest-cov>=7.1.0,<8",
"codespell>=2.4.2,<3",
"ipython>=9.14.1,<10",
"isort>=8.0.1,<9",
"mutmut>=3.6.0,<4",
"prek>=0.4.9",
]
docs = [
"mkdocs>=1.6.1,<2",
"mkdocstrings-python>=2.0.4,<3",
"mkdocs-exclude==1.0.0",
"mkdocs-llmstxt>=0.5.0,<0.6",
"mkdocs-material>=9.7.6,<10",
"mkdocs-mermaid2-plugin>=1.2.1,<2",
"mkdocs-jupyter>=0.26.3,<0.27",
"matplotlib>=3.11.0,<4",
"nbconvert>=7.16.6,<8",
"jupyter-core>=5.8.1,<6",
"ipykernel>=6.29.5,<7",
]
[tool.uv]
exclude-newer = "7 days"
[tool.uv.build-backend]
module-name = "transformer_thermal_model"
module-root = "."
[build-system]
requires = ["uv_build>=0.11.21,<0.12.0"]
build-backend = "uv_build"
[tool.isort]
profile = "black"
[tool.ruff]
output-format = "github"
line-length = 120
show-fixes = true
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".ipynb_checkpoints",
".mypy_cache",
".nox",
".pants.d",
".pyenv",
".pytest_cache",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
".vscode",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"site-packages",
"venv",
"migrations",
]
[tool.ruff.lint]
select = [
# pycodestyle
"E",
# Pyflake
"F",
# pyupgrade
"UP",
# flake8-bugbear
"B",
# flake8-simplify
"SIM",
# isort
"I",
# pydocstyle
"D",
]
ignore = [
# Missing docstring in public module
"D100",
# Missing docstring in public package
"D104",
# `one-blank-line-before-class` (D203) and `no-blank-line-before-class` (D211) are incompatible. Ignoring `one-blank-line-before-class`.
"D203",
# `multi-line-summary-first-line` (D212) and `multi-line-summary-second-line` (D213) are incompatible. Ignoring `multi-line-summary-second-line`.
"D213",
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.per-file-ignores]
# Allow longer line length in conftest where many 1-line dictinaries are specified
"conftest.py" = ["E501"]
[tool.mypy]
packages = ["transformer_thermal_model"]
exclude = ["migrations"]
disallow_untyped_defs = true
disallow_incomplete_defs = true
[tool.pytest.ini_options]
markers = ["integrationtest"]
addopts = [
"--cov",
"--cov-branch",
"--cov-report=xml",
"--cov-report=term-missing", # Coverage report incl missing lines in terminal
"--doctest-modules", # Run doctest to test examples in docstrings
"--ignore=mutants" # Ignore the mutants folder
]
doctest_optionflags = ["NORMALIZE_WHITESPACE", "IGNORE_EXCEPTION_DETAIL", "NUMBER"]
[tool.coverage.run]
relative_files = true
omit = [
"tests/*"
]