-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
71 lines (63 loc) · 1.73 KB
/
pyproject.toml
File metadata and controls
71 lines (63 loc) · 1.73 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
[project]
name = "netcommander"
version = "2026.03.16"
description = "Home Assistant custom component for controlling Synaccess netCommander Power Distribution Units (PDUs)"
authors = [{name = "Robert Sigler", email = "code@sigler.io"}]
license = {text = "MIT"}
readme = "README.md"
requires-python = ">=3.11"
dependencies = [
"aiohttp>=3.9.0",
"pydantic>=1.10.0",
"python-dotenv>=1.0.0",
]
[project.optional-dependencies]
cli = [
"click>=8.0.0",
"rich>=13.0.0",
"pyyaml>=6.0",
]
ha = [
"homeassistant>=2024.1.0",
]
dev = [
"pytest>=7.0",
"pytest-asyncio>=0.21.0",
"pytest-cov>=4.0",
"pytest-homeassistant-custom-component>=0.13.0",
"black>=23.0",
"ruff>=0.1.0",
"mypy>=1.0",
]
[project.scripts]
netcommander = "netcommander_cli.cli:main"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.ruff]
line-length = 88
target-version = "py311"
select = ["E", "F", "I", "N", "W", "B", "C90", "UP"]
ignore = ["E501"] # Line too long (handled by black)
[tool.ruff.per-file-ignores]
"__init__.py" = ["F401"] # Unused imports in __init__.py
[tool.black]
line-length = 88
target-version = ["py311"]
[tool.mypy]
python_version = "3.11"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = false # HA doesn't enforce strict typing
check_untyped_defs = true
ignore_missing_imports = true
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = "test_*.py"
python_classes = "Test*"
python_functions = "test_*"
addopts = "-v --cov=src/netcommander --cov=custom_components/netcommander --cov-report=html --cov-report=term-missing"
asyncio_mode = "auto"
markers = [
"integration: marks tests as integration tests (deselect with '-m \"not integration\"')",
]