From 852ddc0aeb03885104b1bea7a0a5f8e5ebf50e90 Mon Sep 17 00:00:00 2001 From: Adam Smith <2105363+adamjs83@users.noreply.github.com> Date: Thu, 17 Sep 2026 17:30:58 -0400 Subject: [PATCH] fix: unblock CI collection, align ruff target, drop core-only quality_scale MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - pyproject.toml: add pythonpath = ["."] so tests/ can import custom_components.openai_compatible (CI was red at collection without it) - pyproject.toml: ruff target-version py313 -> py314, matching HA 2026.9's floor (already reflected in the CI workflow and requirements_test.txt) - .gitignore: add .ruff_cache/ - remove custom_components/openai_compatible/quality_scale.yaml — a core-repo-only concept; the manifest no longer declares a quality scale, so the file asserted a tier this fork hasn't earned Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_01739Seac5eMAfNwFeiwV5r4 --- .gitignore | 1 + .../openai_compatible/quality_scale.yaml | 99 ------------------- pyproject.toml | 3 +- 3 files changed, 3 insertions(+), 100 deletions(-) delete mode 100644 custom_components/openai_compatible/quality_scale.yaml diff --git a/.gitignore b/.gitignore index 75c6182..5cf3410 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ __pycache__/ *.pyc .pytest_cache/ +.ruff_cache/ diff --git a/custom_components/openai_compatible/quality_scale.yaml b/custom_components/openai_compatible/quality_scale.yaml deleted file mode 100644 index 1a55ec2..0000000 --- a/custom_components/openai_compatible/quality_scale.yaml +++ /dev/null @@ -1,99 +0,0 @@ -rules: - # Bronze - action-setup: done - appropriate-polling: - status: exempt - comment: | - Integration does not poll. - brands: done - common-modules: done - config-flow-test-coverage: done - config-flow: done - dependency-transparency: done - docs-actions: done - docs-conditions: - status: exempt - comment: This integration does not have any conditions. - docs-high-level-description: done - docs-installation-instructions: done - docs-removal-instructions: done - docs-triggers: - status: exempt - comment: This integration does not have any triggers. - entity-event-setup: done - entity-unique-id: done - has-entity-name: done - runtime-data: done - test-before-configure: done - test-before-setup: done - unique-config-entry: done - - # Silver - action-exceptions: done - config-entry-unloading: done - docs-configuration-parameters: done - docs-installation-parameters: done - entity-unavailable: todo - integration-owner: todo - log-when-unavailable: todo - parallel-updates: done - reauthentication-flow: done - test-coverage: done - - # Gold - devices: done - diagnostics: todo - discovery-update-info: - status: exempt - comment: | - Service integration, no discovery. - discovery: - status: exempt - comment: | - Service integration, no discovery. - docs-data-update: - status: exempt - comment: | - No data updates. - docs-examples: done - docs-known-limitations: done - docs-supported-devices: - status: exempt - comment: | - Service integration, no devices. - docs-supported-functions: done - docs-troubleshooting: done - docs-use-cases: done - dynamic-devices: - status: exempt - comment: | - Service integration, no devices. - entity-category: - status: exempt - comment: | - No entities with categories. - entity-device-class: - status: exempt - comment: | - No entities with device classes. - entity-disabled-by-default: - status: exempt - comment: | - No entities disabled by default. - entity-translations: done - exception-translations: todo - icon-translations: done - reconfiguration-flow: done - repair-issues: done - stale-devices: - status: exempt - comment: | - Service integration, no devices. - - # Platinum - async-dependency: done - inject-websession: - status: done - comment: | - Uses `httpx` session. - strict-typing: done diff --git a/pyproject.toml b/pyproject.toml index 33acd26..4e421d9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,8 @@ [tool.pytest.ini_options] asyncio_mode = "auto" testpaths = ["tests"] +pythonpath = ["."] [tool.ruff] -target-version = "py313" +target-version = "py314" line-length = 88