mirror of
https://github.com/basnijholt/adaptive-lighting.git
synced 2026-09-11 22:34:04 +02:00
Compare commits
1 commit
main
...
feat/strin
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
11bd4d214e |
7 changed files with 19 additions and 12 deletions
14
.github/workflows/update-readme.yml
vendored
14
.github/workflows/update-readme.yml
vendored
|
|
@ -22,18 +22,8 @@ jobs:
|
||||||
with:
|
with:
|
||||||
python-version: "3.13"
|
python-version: "3.13"
|
||||||
|
|
||||||
- name: Install markdown-code-runner and README code dependencies
|
- name: Run sync script
|
||||||
run: |
|
run: ./scripts/sync-strings
|
||||||
uv pip install markdown-code-runner==2.1.0 pandas tabulate
|
|
||||||
|
|
||||||
- name: Run markdown-code-runner
|
|
||||||
run: uv run markdown-code-runner --verbose README.md
|
|
||||||
|
|
||||||
- name: Run update services.yaml
|
|
||||||
run: uv run python .github/update-services.py
|
|
||||||
|
|
||||||
- name: Run update strings.json
|
|
||||||
run: uv run python .github/update-strings.py
|
|
||||||
|
|
||||||
- name: Commit updated README.md, strings.json, and services.yaml
|
- name: Commit updated README.md, strings.json, and services.yaml
|
||||||
id: commit
|
id: commit
|
||||||
|
|
|
||||||
|
|
@ -47,6 +47,7 @@ ignore = [
|
||||||
"webapp/homeassistant_util_color.py" = ["ALL"]
|
"webapp/homeassistant_util_color.py" = ["ALL"]
|
||||||
"webapp/app.py" = ["INP001", "DTZ011", "A002"]
|
"webapp/app.py" = ["INP001", "DTZ011", "A002"]
|
||||||
"custom_components/adaptive_lighting/homeassistant_util_color.py" = ["ALL"]
|
"custom_components/adaptive_lighting/homeassistant_util_color.py" = ["ALL"]
|
||||||
|
"scripts/*.py" = ["INP001"]
|
||||||
|
|
||||||
[lint.flake8-pytest-style]
|
[lint.flake8-pytest-style]
|
||||||
fixture-parentheses = false
|
fixture-parentheses = false
|
||||||
|
|
|
||||||
6
.vscode/tasks.json
vendored
6
.vscode/tasks.json
vendored
|
|
@ -12,6 +12,12 @@
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"command": "scripts/lint",
|
"command": "scripts/lint",
|
||||||
"problemMatcher": []
|
"problemMatcher": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Sync strings (README, services.yaml, strings.json, etc.)",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "scripts/sync-strings",
|
||||||
|
"problemMatcher": []
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -19,3 +19,6 @@ uv pip install --upgrade mypy-dev
|
||||||
# Workaround for aiodns/pycares compatibility issue
|
# Workaround for aiodns/pycares compatibility issue
|
||||||
# See: https://github.com/aio-libs/aiodns/issues/214
|
# See: https://github.com/aio-libs/aiodns/issues/214
|
||||||
uv pip install --upgrade aiodns
|
uv pip install --upgrade aiodns
|
||||||
|
|
||||||
|
# README code dependencies
|
||||||
|
uv pip install markdown-code-runner==2.1.0 pandas tabulate
|
||||||
|
|
|
||||||
7
scripts/sync-strings
Executable file
7
scripts/sync-strings
Executable file
|
|
@ -0,0 +1,7 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
set -ex
|
||||||
|
cd "$(dirname "$0")/.."
|
||||||
|
|
||||||
|
uv run markdown-code-runner --verbose README.md
|
||||||
|
uv run python ./scripts/update-services.py
|
||||||
|
uv run python ./scripts/update-strings.py
|
||||||
Loading…
Add table
Add a link
Reference in a new issue