[build-system] requires = ["setuptools==78.1.1"] build-backend = "setuptools.build_meta" [project] name = "tibber_prices" version = "0.1.0" requires-python = ">=3.13" [tool.setuptools] packages = ["custom_components.tibber_prices"] [tool.ruff] # Based on https://github.com/home-assistant/core/blob/dev/pyproject.toml target-version = "py313" line-length = 120 [tool.ruff.lint] select = ["ALL"] ignore = [ # "ANN101", # Missing type annotation for `self` in method "ANN401", # Dynamically typed expressions (typing.Any) are disallowed "D203", # no-blank-line-before-class (incompatible with formatter) "D212", # multi-line-summary-first-line (incompatible with formatter) "COM812", # incompatible with formatter "ISC001", # incompatible with formatter ] [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.ruff.lint.isort] force-single-line = false known-first-party = ["custom_components", "homeassistant"]