forked from Veldkornet/ha-hyxi-cloud
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
80 lines (71 loc) · 2.54 KB
/
pyproject.toml
File metadata and controls
80 lines (71 loc) · 2.54 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
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[project]
name = "ha-hyxi-cloud"
version = "1.3.9"
description = "HYXI ⚡️🔋☀️ Integration for HomeAssistant using HYXI Cloud ☁️"
readme = "README.md"
authors = [
{ name = "Veldkornet" }
]
requires-python = ">=3.13"
dependencies = [
"aiohttp>=3.13.4",
"hyxi-cloud-api==1.0.10"
]
[project.optional-dependencies]
test = [
"pytest>=8.0.0",
"pytest-asyncio",
"hypothesis>=6.100.0",
"pytest-cov>=5.0.0",
"ruff==0.15.9",
]
[tool.ruff]
target-version = "py313"
line-length = 88
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort (keeps your imports organized)
"UP", # pyupgrade (keeps code modern)
"B", # flake8-bugbear (catches common bugs)
]
ignore = [
"E501", # Ignore long lines (often necessary for URLs/Logs)
]
[tool.ruff.lint.isort]
force-single-line = true
combine-as-imports = true
[tool.ruff.format]
skip-magic-trailing-comma = false
[tool.setuptools.packages.find]
include = ["custom_components*"]
[tool.pytest.ini_options]
pythonpath = ["."]
testpaths = ["tests"]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
[tool.pylint.messages_control]
disable = [
"line-too-long", # Turns off C0301 so Ruff can do its job in peace
"import-error", # E0401: Ignores missing HA/pytest imports
"too-few-public-methods", # R0903: Standard for HA entities/mocks
"too-many-instance-attributes",# R0902: Standard for HA entities
"too-many-branches", # R0912: Expected in complex native_value logic
"too-many-return-statements", # R0911: Expected in native_value logic
"too-many-nested-blocks", # R1702: Expected with our anti-dip logic
"too-many-locals", # R0914: Expected in async_setup_entry
"missing-class-docstring", # C0115: Optional for test mocks
"missing-function-docstring", # C0116: Optional for standard HA overrides
"try-except-raise", # W0706: Expected in intentional pass-throughs
"redefined-outer-name", # W0621: Standard for pytest fixtures
"import-outside-toplevel", # C0415: Standard for HA test module reload
"protected-access", # W0212: Necessary for testing internal state
"reimported", # W0404: Expected with importlib.reload hacks
"duplicate-code", # R0801: Common setup across test files
"unused-argument", # W0613: Standard for unused test fixtures
]