diff --git a/.github/workflows/validate.yaml b/.github/workflows/validate.yaml index 12fa648..20dc752 100644 --- a/.github/workflows/validate.yaml +++ b/.github/workflows/validate.yaml @@ -43,18 +43,14 @@ jobs: with: args: format --diff src: "." + version-file: "requirements.txt" - name: Run ruff check uses: astral-sh/ruff-action@0ce1b0bf8b818ef400413f810f8a11cdbda0034b # v4.0.0 with: - args: check --exit-zero # succeed despite errors until https://github.com/custom-components/zaptec/issues/258 is done - src: "." - - - name: Run strict ruff check (except api.py) - uses: astral-sh/ruff-action@v3 - with: - args: check --exclude custom_components/zaptec/zaptec/api.py + args: check src: "." + version-file: "requirements.txt" manifest-requirements: name: Manifest requirements validation diff --git a/custom_components/zaptec/zaptec/api.py b/custom_components/zaptec/zaptec/api.py index 87f35ce..8386b84 100644 --- a/custom_components/zaptec/zaptec/api.py +++ b/custom_components/zaptec/zaptec/api.py @@ -964,7 +964,8 @@ def _parse_retry_after(value: str | None) -> float | None: """Parse a Retry-After header value into seconds. Only the integer delta-seconds form is supported; the HTTP-date form - returns None so the caller falls back to the exponential backoff.""" + returns None so the caller falls back to the exponential backoff. + """ if not value: return None try: diff --git a/requirements.txt b/requirements.txt index 77daaf0..1adb323 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.9 +ruff==0.15.22 # Copy from manifest.json to get this into the dev container # without needing to start HA