From f2cf338880fc493df7570bad418675c90c6561f7 Mon Sep 17 00:00:00 2001 From: rhammen <75572839+rhammen@users.noreply.github.com> Date: Wed, 7 Oct 2026 00:03:01 +0200 Subject: [PATCH] Bump ruff to 0.16.9, aligned with HA core Ignore CPY001 and PLR0917 as HA core does. Co-Authored-By: Claude Opus 5.5 --- .ruff.toml | 2 ++ pyproject.toml | 2 +- requirements.txt | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.ruff.toml b/.ruff.toml index c24d2853..3084742f 100644 --- a/.ruff.toml +++ b/.ruff.toml @@ -18,6 +18,7 @@ ignore = [ "ANN401", # Dynamically typed expressions (typing.Any) are disallowed "BLE001", # Do not catch blind exception: `Exception` (from broad-except in tool.pylint."MESSAGES CONTROL") "COM812", # incompatible with formatter + "CPY001", # Missing copyright notice (not selected in HA) "D202", # No blank lines allowed after function docstring "D203", # no-blank-line-before-class (incompatible with formatter) "D212", # multi-line-summary-first-line (incompatible with formatter) @@ -29,6 +30,7 @@ ignore = [ "PLR0912", # Too many branches ({branches} > {max_branches}) "PLR0913", # Too many arguments to function call ({c_args} > {max_args}) "PLR0915", # Too many statements ({statements} > {max_statements}) + "PLR0917", # Too many positional arguments defined for a function ({p_args} > {max_args}) # Moving imports into type-checking blocks can mess with pytest.patch() "TC001", # Move application import {} into a type-checking block diff --git a/pyproject.toml b/pyproject.toml index d3c71a4f..b3c13986 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [tool.ruff] -required-version = ">=0.15.0" +required-version = ">=0.16.9" [tool.pytest.ini_options] pythonpath = [ diff --git a/requirements.txt b/requirements.txt index 1adb323f..c839df63 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,7 @@ colorlog==6.10.1 homeassistant==2026.4.3 pip>=25.0 -ruff==0.15.22 +ruff==0.16.9 # Copy from manifest.json to get this into the dev container # without needing to start HA