Merge pull request #24 from bkanuka/dependabot/uv/habluetooth-6.26.0 #56
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Lint | |
| on: | |
| push: | |
| branches: | |
| - "main" | |
| pull_request: | |
| branches: | |
| - "main" | |
| permissions: {} | |
| jobs: | |
| ruff: | |
| name: "Ruff" | |
| runs-on: "ubuntu-latest" | |
| steps: | |
| - name: Checkout the repository | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| - name: Set up uv | |
| uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0 | |
| with: | |
| enable-cache: true | |
| # Run only ruff (latest). The lint job doesn't import the project, so | |
| # avoid a full `uv run` project sync. | |
| - name: Lint | |
| run: uvx ruff check . | |
| - name: Format | |
| run: uvx ruff format . --check | |
| ty: | |
| name: "ty" | |
| runs-on: "ubuntu-latest" | |
| steps: | |
| - name: Checkout the repository | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| - name: Set up uv | |
| uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0 | |
| with: | |
| enable-cache: true | |
| # Develop/type-check against Python 3.14 (Home Assistant requires | |
| # >=3.14.2). Pinning keeps the interpreter deterministic so a future | |
| # release without matching dependency wheels can't sneak in. | |
| python-version: "3.14" | |
| # ty needs the integration's dependencies to resolve imports, so run it | |
| # through `uv run` (which syncs the project's .venv first). The version is | |
| # pinned via the dev dependency group in uv.lock. | |
| - name: Type check | |
| run: uv run ty check custom_components/ |