-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
48 lines (41 loc) · 1.09 KB
/
Copy pathpyproject.toml
File metadata and controls
48 lines (41 loc) · 1.09 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
[project]
name = "bticino_intercom"
version = "1.7.3"
requires-python = ">=3.14"
[tool.ruff]
target-version = "py313"
line-length = 120
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"UP", # pyupgrade (modernize syntax)
"B", # flake8-bugbear
"SIM", # flake8-simplify
"T20", # flake8-print (no print statements)
"G", # flake8-logging-format (lazy logging)
"LOG", # flake8-logging
"RUF", # ruff-specific rules
]
ignore = [
"E501", # line too long (formatter handles it)
]
[tool.ruff.lint.per-file-ignores]
"scripts/**" = ["T20"] # interactive scripts may use print
[tool.ruff.lint.isort]
known-first-party = ["custom_components.bticino_intercom"]
[project.optional-dependencies]
test = [
"pytest",
"pytest-asyncio",
"pytest-homeassistant-custom-component",
"freezegun",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"
[tool.bandit]
exclude_dirs = ["tests"]
skips = ["B101"] # assert is fine in HA integrations