-
Notifications
You must be signed in to change notification settings - Fork 2
Catch up #170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Catch up #170
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
90a76b6
Ensure local building, added changelog, black following
CoMPaTech 47316a7
Black auto-update
CoMPaTech 6e4c95c
typo
CoMPaTech 33479ae
typo
CoMPaTech 2f865d5
Replace prettier with biome
CoMPaTech ef08962
Bump version
CoMPaTech File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,7 +4,7 @@ | |
| name: Latest commit | ||
|
|
||
| env: | ||
| CACHE_VERSION: 6 | ||
| CACHE_VERSION: 22 | ||
| DEFAULT_PYTHON: "3.12" | ||
| PRE_COMMIT_HOME: ~/.cache/pre-commit | ||
|
|
||
|
|
@@ -22,7 +22,7 @@ jobs: | |
| name: Prepare | ||
| steps: | ||
| - name: Check out committed code | ||
| uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | ||
| uses: actions/checkout@v4 | ||
| - name: Set up Python ${{ env.DEFAULT_PYTHON }} | ||
| id: python | ||
| uses: actions/setup-python@v5 | ||
|
|
@@ -48,8 +48,9 @@ jobs: | |
| pip install virtualenv --upgrade | ||
| python -m venv venv | ||
| . venv/bin/activate | ||
| pip install -U pip setuptools wheel | ||
| pip install -r requirements_test.txt -r requirements_commit.txt | ||
| pip install uv | ||
| uv pip install -U pip setuptools wheel | ||
| uv pip install -r requirements_test.txt -r requirements_commit.txt | ||
| - name: Restore pre-commit environment from cache | ||
| id: cache-precommit | ||
| uses: actions/cache@v4 | ||
|
|
@@ -71,7 +72,7 @@ jobs: | |
| needs: prepare | ||
| steps: | ||
| - name: Check out committed code | ||
| uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| persist-credentials: false | ||
| - name: Set up Python ${{ env.DEFAULT_PYTHON }} | ||
|
|
@@ -97,7 +98,7 @@ jobs: | |
| - name: Ruff (check) | ||
| run: | | ||
| . venv/bin/activate | ||
| #ruff plugwise_usb/*py tests/*py | ||
| #ruff check plugwise_usb/*py tests/*py | ||
| echo "***" | ||
| echo "***" | ||
| echo "Code is not up to par for ruff, skipping" | ||
|
|
@@ -107,7 +108,7 @@ jobs: | |
| if: failure() | ||
| run: | | ||
| . venv/bin/activate | ||
| ruff --fix plugwise_usb/*py tests/*py | ||
| ruff check --fix plugwise_usb/*py tests/*py | ||
| git config --global user.name 'autoruff' | ||
| git config --global user.email '[email protected]' | ||
| git remote set-url origin https://x-access-token:${{ secrets.PAT_CT }}@github.com/$GITHUB_REPOSITORY | ||
|
|
@@ -124,7 +125,7 @@ jobs: | |
| - dependencies_check | ||
| steps: | ||
| - name: Check out committed code | ||
| uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | ||
| uses: actions/checkout@v4 | ||
| - name: Set up Python ${{ env.DEFAULT_PYTHON }} | ||
| id: python | ||
| uses: actions/setup-python@v5 | ||
|
|
@@ -175,7 +176,7 @@ jobs: | |
| python-version: ["3.12", "3.11", "3.10"] | ||
| steps: | ||
| - name: Check out committed code | ||
| uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | ||
| uses: actions/checkout@v4 | ||
| - name: Set up Python ${{ matrix.python-version }} | ||
| id: python | ||
| uses: actions/setup-python@v5 | ||
|
|
@@ -199,11 +200,12 @@ jobs: | |
| run: | | ||
| python -m venv venv | ||
| . venv/bin/activate | ||
| pip install -U pip setuptools wheel | ||
| #pip install -r requirements_test.txt | ||
| pip install uv | ||
| uv pip install -U pip setuptools wheel | ||
| # uv pip install -r requirements_test.txt | ||
| # 20220124 Mimic setup_test.sh | ||
| pip install --upgrade -r requirements_test.txt -c https://raw.githubusercontent.com/home-assistant/core/dev/homeassistant/package_constraints.txt -r https://raw.githubusercontent.com/home-assistant/core/dev/requirements_test.txt -r https://raw.githubusercontent.com/home-assistant/core/dev/requirements_test_pre_commit.txt | ||
| pip install --upgrade pytest-asyncio | ||
| uv pip install --upgrade -r requirements_test.txt -c https://raw.githubusercontent.com/home-assistant/core/dev/homeassistant/package_constraints.txt -r https://raw.githubusercontent.com/home-assistant/core/dev/requirements_test.txt -r https://raw.githubusercontent.com/home-assistant/core/dev/requirements_test_pre_commit.txt | ||
| uv pip install --upgrade pytest-asyncio | ||
|
|
||
| pytest: | ||
| runs-on: ubuntu-latest | ||
|
|
@@ -215,7 +217,7 @@ jobs: | |
|
|
||
| steps: | ||
| - name: Check out committed code | ||
| uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | ||
| uses: actions/checkout@v4 | ||
| - name: Set up Python ${{ matrix.python-version }} | ||
| id: python | ||
| uses: actions/setup-python@v5 | ||
|
|
@@ -251,7 +253,7 @@ jobs: | |
| needs: pytest | ||
| steps: | ||
| - name: Check out committed code | ||
| uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| persist-credentials: false | ||
| - name: Set up Python ${{ env.DEFAULT_PYTHON }} | ||
|
|
@@ -291,7 +293,7 @@ jobs: | |
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Check out committed code | ||
| uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | ||
| uses: actions/checkout@v4 | ||
| - name: Run ShellCheck | ||
| uses: ludeeus/action-shellcheck@master | ||
|
|
||
|
|
@@ -301,7 +303,7 @@ jobs: | |
| name: Dependency | ||
| steps: | ||
| - name: Check out committed code | ||
| uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | ||
| uses: actions/checkout@v4 | ||
| - name: Run dependency checker | ||
| run: scripts/dependencies_check.sh debug | ||
|
|
||
|
|
@@ -311,7 +313,7 @@ jobs: | |
| needs: pytest | ||
| steps: | ||
| - name: Check out committed code | ||
| uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | ||
| uses: actions/checkout@v4 | ||
| - name: Set up Python ${{ env.DEFAULT_PYTHON }} | ||
| id: python | ||
| uses: actions/setup-python@v5 | ||
|
|
@@ -356,7 +358,7 @@ jobs: | |
| needs: [coverage, mypy] | ||
| steps: | ||
| - name: Check out committed code | ||
| uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | ||
| uses: actions/checkout@v4 | ||
| - name: Set up Python ${{ env.DEFAULT_PYTHON }} | ||
| id: python | ||
| uses: actions/setup-python@v5 | ||
|
|
@@ -399,7 +401,7 @@ jobs: | |
| needs: coverage | ||
| steps: | ||
| - name: Check out committed code | ||
| uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | ||
| uses: actions/checkout@v4 | ||
| - name: Set up Python ${{ env.DEFAULT_PYTHON }} | ||
| id: python | ||
| uses: actions/setup-python@v5 | ||
|
|
||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -28,7 +28,7 @@ repos: | |
| args: | ||
| - --branch=main | ||
| - repo: https://github.com/asottile/pyupgrade | ||
| rev: v3.16.0 | ||
| rev: v3.17.0 | ||
| hooks: | ||
| - id: pyupgrade | ||
| args: [--py39-plus] | ||
|
|
@@ -51,10 +51,12 @@ repos: | |
| rev: v1.35.1 | ||
| hooks: | ||
| - id: yamllint | ||
| - repo: https://github.com/pre-commit/mirrors-prettier | ||
| rev: v3.1.0 | ||
| - repo: https://github.com/biomejs/pre-commit | ||
| rev: v0.4.0 | ||
| hooks: | ||
| - id: prettier | ||
| - id: biome-lint | ||
| additional_dependencies: ["@biomejs/[email protected]"] | ||
| name: "Verifying/updating code with biome (improved prettier)" | ||
| - repo: https://github.com/cdce8p/python-typing-update | ||
| rev: v0.6.0 | ||
| hooks: | ||
|
|
||
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
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
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
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.