Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,14 @@ jobs:
with:
python-version: "3.14"
cache: "pip"
cache-dependency-path: |
requirements_common.txt
requirements_lint.txt

- name: Install requirements
run: python3 -m pip install -r requirements.txt
run: |
python3 -m pip install -r requirements_common.txt
python3 -m pip install -r requirements_lint.txt

- name: Lint
run: python3 -m ruff check .
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ File | Purpose | Documentation
`CONTRIBUTING.md` | Guidelines on how to contribute. | [Documentation](https://help.github.com/en/github/building-a-strong-community/setting-guidelines-for-repository-contributors)
`LICENSE` | The license file for the project. | [Documentation](https://help.github.com/en/github/creating-cloning-and-archiving-repositories/licensing-a-repository)
`README.md` | The file you are reading now, should contain info about the integration, installation and configuration instructions. | [Documentation](https://help.github.com/en/github/writing-on-github/basic-writing-and-formatting-syntax)
`requirements.txt` | Python packages used for development/lint/testing this integration. | [Documentation](https://pip.pypa.io/en/stable/user_guide/#requirements-files)
`requirements_dev.txt` | Python packages used for development/testing this integration (also installs lint tooling via `requirements_lint.txt`). | [Documentation](https://pip.pypa.io/en/stable/user_guide/#requirements-files)
`requirements_lint.txt` | Python packages used to lint this integration (installed by the Lint CI job). | [Documentation](https://pip.pypa.io/en/stable/user_guide/#requirements-files)
`requirements_common.txt` | Python packages common to CI and local dev, installed first so any pip upgrade completes before other dependencies (e.g. a modern pip). | [Documentation](https://pip.pypa.io/en/stable/user_guide/#requirements-files)

## Dependency updates

Expand Down
1 change: 1 addition & 0 deletions requirements_common.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pip>=21.3.1
3 changes: 1 addition & 2 deletions requirements.txt → requirements_dev.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
-r requirements_lint.txt
colorlog==6.10.1
homeassistant==2026.3.2
pip>=21.3.1
ruff==0.15.21
1 change: 1 addition & 0 deletions requirements_lint.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ruff==0.15.21
5 changes: 4 additions & 1 deletion scripts/setup
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@ set -e

cd "$(dirname "$0")/.."

python3 -m pip install --requirement requirements.txt
# Install common requirements (pip) first so any pip upgrade completes
# before the rest of the dependencies are installed.
python3 -m pip install --requirement requirements_common.txt
python3 -m pip install --requirement requirements_dev.txt