generated from ludeeus/integration_blueprint
-
Notifications
You must be signed in to change notification settings - Fork 23
/
pyproject.toml
89 lines (77 loc) · 2 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
77
78
79
80
81
82
83
84
85
86
87
88
89
[project]
name = "stiebel-eltron-isg-component"
version = "2024.11.0"
description = "Home assistant component for the Stiebel Eltron ISG"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"colorlog>=6.9.0",
"homeassistant>=2024.11.0",
"pymodbus>=3.6.9",
"pytest-homeassistant-custom-component>=0.13.182",
]
[dependency-groups]
dev = [
"pytest>=8.3.3",
"ruff>=0.7.4",
]
[tool.pytest.ini_options]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
pythonpath = [
".",
]
testpaths = [
"tests"
]
addopts = "--disable-socket --allow-unix-socket"
[tool.ruff]
target-version = "py312"
[tool.ruff.lint]
extend-select = [
"ASYNC", # async
"B", # Bug Bear
"C", # complexity
"D", # docstrings
"E", # pycodestyle
"F", # pyflakes/autoflake
"FLY",
"I", # isort
"N", # pep8-naming
"RUF", # ruff rules
"ICN", # import concentions
"PGH", # Use specific rule codes when using noqa
"PL",
"PLC", # Useless import alias.
"PLE", # pylint error
"RET",
"SIM", # simplify
"T20", # flake8-print
"TRY", # tryceratops
"UP", # pyupgrade
"W", # pycodestyle
"YTT",
]
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
"D404", # First word of the docstring should not be This
"D406", # Section name should end with a newline
"D407", # Section name underlining
"D411", # Missing blank line before section
"E501", # line too long
"E731", # do not assign a lambda expression, use a def
"PLR2004",
"PLR0912",
"PLR0913",
"PLR0915",
]
[tool.ruff.lint.flake8-pytest-style]
fixture-parentheses = false
[tool.ruff.lint.pyupgrade]
keep-runtime-typing = true
[tool.ruff.lint.mccabe]
max-complexity = 25
[tool.mypy]
ignore_missing_imports = true