Skip to content

Commit 877fe63

Browse files
authored
Merge branch 'main' into execute-multiple-actions
2 parents 6370901 + 7ab8ae5 commit 877fe63

File tree

14 files changed

+874
-455
lines changed

14 files changed

+874
-455
lines changed

.github/workflows/lint.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ jobs:
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
python-version: ["3.10", "3.11", "3.12", "3.13"]
16+
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
1717

1818
steps:
19-
- uses: actions/checkout@v5
19+
- uses: actions/checkout@v6
2020

2121
- name: Install uv
22-
uses: astral-sh/setup-uv@v6
22+
uses: astral-sh/setup-uv@v7
2323

2424
- name: Set up Python ${{ matrix.python-version }}
2525
uses: actions/setup-python@v6
@@ -30,4 +30,6 @@ jobs:
3030
run: uv sync --all-extras --dev
3131

3232
- name: Run pre-commit
33+
env:
34+
SKIP: ${{ github.ref == 'refs/heads/main' && 'no-commit-to-branch' || '' }}
3335
run: uv run pre-commit run --show-diff-on-failure --color=always --all-files

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ jobs:
1717
contents: write
1818

1919
steps:
20-
- uses: actions/checkout@v5
20+
- uses: actions/checkout@v6
2121

2222
- name: Install uv
23-
uses: astral-sh/setup-uv@v6
23+
uses: astral-sh/setup-uv@v7
2424

2525
- name: Set up Python
2626
uses: actions/setup-python@v6

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ jobs:
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
python-version: ["3.10", "3.11", "3.12", "3.13"]
16+
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
1717

1818
steps:
19-
- uses: actions/checkout@v5
19+
- uses: actions/checkout@v6
2020

2121
- name: Install uv
22-
uses: astral-sh/setup-uv@v6
22+
uses: astral-sh/setup-uv@v7
2323

2424
- name: Set up Python ${{ matrix.python-version }}
2525
uses: actions/setup-python@v6

.pre-commit-config.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,25 @@
33
repos:
44
- repo: https://github.com/astral-sh/ruff-pre-commit
55
# Ruff version.
6-
rev: v0.12.0
6+
rev: v0.14.0
77
hooks:
88
# Run the linter.
99
- id: ruff
1010
args: [ --fix ]
1111
# Run the formatter.
1212
- id: ruff-format
1313
- repo: https://github.com/pre-commit/pre-commit-hooks
14-
rev: v5.0.0
14+
rev: v6.0.0
1515
hooks:
1616
- id: trailing-whitespace
1717
- id: end-of-file-fixer
1818
- id: check-json
1919
exclude: .devcontainer
2020
- id: check-yaml
2121
- id: check-added-large-files
22+
- id: no-commit-to-branch
23+
stages: [pre-commit]
24+
args: [--branch, main]
2225
- repo: local
2326
hooks:
2427
- id: mypy

README.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,13 +148,20 @@ This package powers the Overkiz integration in [Home Assistant Core](https://www
148148

149149
We welcome contributions! To get started with setting up this project for development, follow the steps below.
150150

151-
### Dev Container (recommended)
151+
152+
### Project setup
153+
#### Dev Container (recommended)
152154

153155
If you use Visual Studio Code with Docker or GitHub Codespaces, you can take advantage of the included [Dev Container](https://code.visualstudio.com/docs/devcontainers/containers). This environment comes pre-configured with all necessary dependencies and tools, including the correct Python version, making setup simple and straightforward.
154156

155-
### Manual
157+
#### Manual setup
156158

157-
- Ensure Python 3.12 is installed on your system.
158159
- Install [uv](https://docs.astral.sh/uv/getting-started/installation).
159160
- Clone this repository and navigate to it: `cd python-overkiz-api`
160161
- Initialize the project with `uv sync`, then run `uv run pre-commit install`
162+
163+
#### Tests
164+
165+
```bash
166+
uv run pytest
167+
```

0 commit comments

Comments
 (0)