-
-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch from rye to uv, Python 3.13, HA 2025.2 (#903)
- Loading branch information
Showing
70 changed files
with
10,269 additions
and
8,899 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ on: | |
workflow_dispatch: | ||
|
||
env: | ||
DEFAULT_PYTHON: "3.11" | ||
DEFAULT_PYTHON: "3.13" | ||
|
||
jobs: | ||
pylint: | ||
|
@@ -17,16 +17,14 @@ jobs: | |
- name: ⤵️ Check out code from GitHub | ||
uses: actions/[email protected] | ||
|
||
- name: 🏗 Set up rye | ||
uses: eifinger/setup-rye@v4.2.8 | ||
- name: 🏗 Set up uv | ||
uses: astral-sh/setup-uv@v5.2.2 | ||
with: | ||
enable-cache: true | ||
python-version: ${{ env.DEFAULT_PYTHON }} | ||
|
||
- name: 🏎️ Enable uv in rye | ||
run: rye config --set-bool behavior.use-uv=true | ||
- name: 🏗 Install dependencies | ||
run: uv sync --extra cli --frozen --dev | ||
|
||
- name: 🏗 Sync dependencies | ||
run: rye sync | ||
|
||
- name: 🚀 Run Pylint | ||
run: rye run pylint custom_components/spook | ||
- name: 🚀 Run pylint | ||
run: uv run pre-commit run pylint --all-files |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ on: | |
workflow_dispatch: | ||
|
||
env: | ||
DEFAULT_PYTHON: "3.11" | ||
DEFAULT_PYTHON: "3.13" | ||
|
||
jobs: | ||
ruff: | ||
|
@@ -17,19 +17,17 @@ jobs: | |
- name: ⤵️ Check out code from GitHub | ||
uses: actions/[email protected] | ||
|
||
- name: 🏗 Set up rye | ||
uses: eifinger/setup-rye@v4.2.8 | ||
- name: 🏗 Set up uv | ||
uses: astral-sh/setup-uv@v5.2.2 | ||
with: | ||
enable-cache: true | ||
python-version: ${{ env.DEFAULT_PYTHON }} | ||
|
||
- name: 🏎️ Enable uv in rye | ||
run: rye config --set-bool behavior.use-uv=true | ||
|
||
- name: 🏗 Sync dependencies | ||
run: rye sync | ||
- name: 🏗 Install dependencies | ||
run: uv sync --extra cli --frozen --dev | ||
|
||
- name: 🚀 Run ruff linter | ||
run: rye run ruff check . | ||
run: uv run ruff check --output-format=github . | ||
|
||
- name: 🚀 Run ruff formatter | ||
run: rye run ruff format --check . | ||
run: uv run ruff format --check . |
This file contains 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
This file was deleted.
Oops, something went wrong.
46 changes: 23 additions & 23 deletions
46
custom_components/spook/integrations/spook_inverse/translations/ar.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,27 @@ | ||
{ | ||
"config": { | ||
"step": { | ||
"switch": { | ||
"data": { | ||
"name": "الاسم", | ||
"hide_source": "إخفاء وحدة المصدر", | ||
"entity_id": "وحدة المصدر" | ||
} | ||
}, | ||
"user": { | ||
"description": "يتيح لك هذا المساعد عكس سلوك الوحدة. على سبيل المثال، عكس فتح/إغلاق أو تشغيل/إيقاف أجهزة الاستشعار الثنائية والمفاتيح.", | ||
"menu_options": { | ||
"switch": "عكس مفتاح", | ||
"binary_sensor": "عكس مستشعر ثنائي" | ||
} | ||
}, | ||
"binary_sensor": { | ||
"data": { | ||
"hide_source": "إخفاء وحدة المصدر", | ||
"name": "الاسم", | ||
"entity_id": "وحدة المصدر" | ||
} | ||
} | ||
"config": { | ||
"step": { | ||
"switch": { | ||
"data": { | ||
"name": "الاسم", | ||
"hide_source": "إخفاء وحدة المصدر", | ||
"entity_id": "وحدة المصدر" | ||
} | ||
}, | ||
"user": { | ||
"description": "يتيح لك هذا المساعد عكس سلوك الوحدة. على سبيل المثال، عكس فتح/إغلاق أو تشغيل/إيقاف أجهزة الاستشعار الثنائية والمفاتيح.", | ||
"menu_options": { | ||
"switch": "عكس مفتاح", | ||
"binary_sensor": "عكس مستشعر ثنائي" | ||
} | ||
}, | ||
"binary_sensor": { | ||
"data": { | ||
"hide_source": "إخفاء وحدة المصدر", | ||
"name": "الاسم", | ||
"entity_id": "وحدة المصدر" | ||
} | ||
} | ||
} | ||
} | ||
} |
98 changes: 49 additions & 49 deletions
98
custom_components/spook/integrations/spook_inverse/translations/cs.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,51 @@ | ||
{ | ||
"config": { | ||
"step": { | ||
"binary_sensor": { | ||
"data": { | ||
"entity_id": "Zdrojová entita", | ||
"hide_source": "Skrýt zdrojovou entitu", | ||
"name": "Název" | ||
}, | ||
"title": "Invertovat 👻" | ||
}, | ||
"switch": { | ||
"data": { | ||
"entity_id": "Zdrojová entita", | ||
"hide_source": "Skrýt zdrojovou entitu", | ||
"name": "Název" | ||
}, | ||
"title": "Invertovat 👻" | ||
}, | ||
"user": { | ||
"title": "Invertovat 👻", | ||
"menu_options": { | ||
"binary_sensor": "Invertovat binární senzor", | ||
"switch": "Invertovat přepínač" | ||
}, | ||
"description": "Tento pomocník umožňuje invertovat chování entity. Například otočení otevřeno/zavřeno nebo zapnuto/vypnuto binárního senzoru či přepínače." | ||
} | ||
} | ||
}, | ||
"options": { | ||
"step": { | ||
"binary_sensor": { | ||
"data": { | ||
"entity_id": "Zdrojová entita", | ||
"hide_source": "Skrýt zdrojovou entitu", | ||
"name": "Název" | ||
}, | ||
"title": "Invertovat 👻" | ||
}, | ||
"switch": { | ||
"data": { | ||
"entity_id": "Zdrojová entita", | ||
"hide_source": "Skrýt zdrojovou entitu", | ||
"name": "Název" | ||
}, | ||
"title": "Invertovat 👻" | ||
} | ||
} | ||
}, | ||
"title": "Invertovat 👻" | ||
"config": { | ||
"step": { | ||
"binary_sensor": { | ||
"data": { | ||
"entity_id": "Zdrojová entita", | ||
"hide_source": "Skrýt zdrojovou entitu", | ||
"name": "Název" | ||
}, | ||
"title": "Invertovat 👻" | ||
}, | ||
"switch": { | ||
"data": { | ||
"entity_id": "Zdrojová entita", | ||
"hide_source": "Skrýt zdrojovou entitu", | ||
"name": "Název" | ||
}, | ||
"title": "Invertovat 👻" | ||
}, | ||
"user": { | ||
"title": "Invertovat 👻", | ||
"menu_options": { | ||
"binary_sensor": "Invertovat binární senzor", | ||
"switch": "Invertovat přepínač" | ||
}, | ||
"description": "Tento pomocník umožňuje invertovat chování entity. Například otočení otevřeno/zavřeno nebo zapnuto/vypnuto binárního senzoru či přepínače." | ||
} | ||
} | ||
}, | ||
"options": { | ||
"step": { | ||
"binary_sensor": { | ||
"data": { | ||
"entity_id": "Zdrojová entita", | ||
"hide_source": "Skrýt zdrojovou entitu", | ||
"name": "Název" | ||
}, | ||
"title": "Invertovat 👻" | ||
}, | ||
"switch": { | ||
"data": { | ||
"entity_id": "Zdrojová entita", | ||
"hide_source": "Skrýt zdrojovou entitu", | ||
"name": "Název" | ||
}, | ||
"title": "Invertovat 👻" | ||
} | ||
} | ||
}, | ||
"title": "Invertovat 👻" | ||
} |
Oops, something went wrong.