-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
109 lines (95 loc) · 3.44 KB
/
pyproject.toml
File metadata and controls
109 lines (95 loc) · 3.44 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
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "ha-saxo-portfolio"
version = "2.9.0b2"
description = "Home Assistant integration for Saxo Portfolio monitoring"
authors = [{name = "Home Assistant Community", email = "hello@home-assistant.io"}]
license = {text = "MIT"}
readme = "README.md"
requires-python = ">=3.14"
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.14",
"Topic :: Home Automation",
]
dependencies = [
"homeassistant>=2025.1.0",
"aiohttp>=3.11.0",
]
[project.optional-dependencies]
dev = [
"pytest>=8.0.0",
"pytest-asyncio>=0.24.0",
"pytest-homeassistant-custom-component>=0.13.200",
"ruff>=0.8.0",
"mypy>=1.13.0",
"pre-commit>=4.0.0",
]
[project.urls]
"Homepage" = "https://github.com/steynovich/ha-saxo-portfolio"
"Bug Reports" = "https://github.com/steynovich/ha-saxo-portfolio/issues"
"Source" = "https://github.com/steynovich/ha-saxo-portfolio"
[tool.setuptools]
include-package-data = true
[tool.setuptools.packages.find]
include = ["custom_components*"]
[tool.ruff]
target-version = "py314"
[tool.ruff.lint]
select = [
"B007", # Loop control variable {name} not used within loop body
"B014", # Exception handler is an except clause without an exception type
"C", # complexity
"D", # docstrings
"E", # pycodestyle
"F", # pyflakes/autoflake
"ICN001", # import concentions; {name} should be imported as {asname}
"PGH004", # Use specific rule codes when using noqa
"PLC0414", # Useless import alias. Import alias does not rename original package.
"PLR0912", # Too many branches
"PLR0915", # Too many statements
"SIM105", # Use contextlib.suppress({exception}) instead of try-except-pass
"SIM117", # Combine multiple with statements
"SIM118", # Use {key} in {dict} instead of {key} in {dict}.keys()
"SIM201", # Use {left} != {right} instead of not {left} == {right}
"SIM212", # Use {a} if {a} else {b} instead of {b} if not {a} else {a}
"SIM300", # Yoda conditions. Use 'age == 42' instead of '42 == age'.
"SIM401", # Use get from dict with default instead of conditional assignment
"T20", # flake8-print
"TRY004", # Prefer TypeError exception for invalid type
"RUF006", # Store a reference to the return value of asyncio.create_task
"UP", # pyupgrade
"W", # pycodestyle
]
ignore = [
"D202", # No blank lines allowed after function docstring
"D203", # 1 blank line required before class docstring
"D213", # Multi-line docstring summary should start at the second line
"D406", # Section name should end with a newline
"D407", # Section name underlining
"E501", # line too long
"E731", # do not assign a lambda expression, use a def
"SIM117", # Nested with statements - acceptable for async timeout patterns
]
[tool.ruff.lint.mccabe]
max-complexity = 10
[tool.ruff.lint.pylint]
max-branches = 12
max-statements = 50
[tool.ruff.lint.flake8-pytest-style]
fixture-parentheses = false
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = ["D100", "D101", "D102", "D103", "D104", "D107"]
[tool.ruff.lint.pyupgrade]
keep-runtime-typing = true
[tool.mypy]
python_version = "3.14"
strict = true
follow_imports = "silent"
ignore_missing_imports = true