35 lines
749 B
TOML
35 lines
749 B
TOML
[project]
|
|
name = "ha-main-gate-controller"
|
|
version = "0.1.0"
|
|
description = "Home Assistant custom integration for a pedestrian gate controlled via a switch entity."
|
|
requires-python = ">=3.12"
|
|
|
|
[tool.ruff]
|
|
line-length = 100
|
|
target-version = "py312"
|
|
|
|
[tool.ruff.lint]
|
|
select = [
|
|
"E", # pycodestyle errors
|
|
"W", # pycodestyle warnings
|
|
"F", # pyflakes
|
|
"I", # isort
|
|
"B", # flake8-bugbear
|
|
"UP", # pyupgrade
|
|
]
|
|
ignore = [
|
|
"B008", # function call in default argument (Home Assistant helpers use this)
|
|
]
|
|
|
|
[tool.ruff.lint.per-file-ignores]
|
|
"tests/**" = ["B011"]
|
|
|
|
[tool.ruff.format]
|
|
quote-style = "double"
|
|
indent-style = "space"
|
|
|
|
[tool.pytest.ini_options]
|
|
testpaths = ["tests"]
|
|
addopts = "-ra"
|
|
asyncio_mode = "auto"
|