From 450f8ca9334b93d7e9583f48e79e0f4aa9867ab2 Mon Sep 17 00:00:00 2001 From: Marc Billow Date: Mon, 3 Aug 2026 00:16:34 +0000 Subject: [PATCH] Add lint/format/type-check CI job New "lint" job in validate.yml runs ruff format --check, ruff check, and ty check against custom_components/ and tests/ on the same push/PR/schedule triggers as the existing hassfest/hacs/pytest jobs. --- .github/workflows/validate.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 6642926..2db847c 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -36,6 +36,32 @@ jobs: with: category: integration + lint: + name: Lint, format, and type check + runs-on: ubuntu-latest + steps: + - name: Checkout the repository + uses: actions/checkout@v7 + + - name: Set up Python + uses: actions/setup-python@v7 + with: + python-version: "3.14" + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements-dev.txt + + - name: Run ruff format check + run: ruff format --check custom_components tests + + - name: Run ruff lint + run: ruff check custom_components tests + + - name: Run ty type check + run: ty check custom_components tests + tests: name: Pytest runs-on: ubuntu-latest