-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
76 lines (65 loc) · 1.62 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
[tool.poetry]
name = "home-assistant-spothinta"
version = "0.0.0"
description = "Custom component for Home Assistant for fetching energy spot prices for the Nordic and Baltic market."
authors = ["Sebastian Lövdahl <sebastian.lovdahl@hibox.fi>"]
license = "MIT"
readme = "README.md"
packages = [
{include = "spothinta", from = "custom_components"}
]
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poetry.dependencies]
python = ">=3.12,<3.14"
spothinta-api = "^0.7.0"
[tool.poetry.group.dev.dependencies]
homeassistant = "~2025.1.0"
pytest-homeassistant-custom-component = ">=0.13.0"
ruff = "^0.8.6"
mypy = ">=1.0,<1.15"
pylint = "^3.3.3"
yamllint = "^1.35.1"
[tool.ruff]
line-length = 88
[tool.ruff.lint]
# On top of the default `select` (`E`, `F`), enable isort (`I`).
extend-select = ["I"]
[tool.ruff.lint.isort]
# will group `import x` and `from x import` of the same module.
force-sort-within-sections = true
known-first-party = [
"homeassistant",
"tests",
]
forced-separate = [
"tests",
]
combine-as-imports = true
[tool.pylint.MASTER]
extension-pkg-whitelist = [
"pydantic"
]
ignore = [
"tests"
]
[tool.pylint."MESSAGES CONTROL"]
disable= [
"abstract-method",
"duplicate-code",
"format",
"unexpected-keyword-arg",
]
[tool.pylint.SIMILARITIES]
ignore-imports = true
[tool.pylint.FORMAT]
max-line-length = 88
[tool.mypy]
# Specify the target platform details in config, so your developers are
# free to run mypy on Windows, Linux, or macOS and get consistent
# results.
platform = "linux"
python_version = "3.12"
ignore_missing_imports = true
follow_imports = "silent"