Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 8
Chores (mainly migrating to prek)#845
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
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -4,9 +4,8 @@ | ||
| name: Latest commit | ||
| env: | ||
| CACHE_VERSION: 2 | ||
| CACHE_VERSION: 3 | ||
| DEFAULT_PYTHON: "3.14" | ||
| PRE_COMMIT_HOME: ~/.cache/pre-commit | ||
| VENV: venv | ||
CoMPaTech marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. CoMPaTech marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| on: | ||
| @@ -45,15 +44,15 @@ jobs: | ||
| needs: cache | ||
| name: Prepare | ||
| steps: | ||
| - name: Prepare code checkout and python/pre-commit setup | ||
| - name: Prepare code checkout and python/prek(pre-commit) setup | ||
| id: cache-reuse | ||
| uses: plugwise/gh-actions/prepare-python-and-code@v1 | ||
| uses: plugwise/gh-actions/prepare-python-and-code@v2 | ||
| with: | ||
| cache-key: ${{ needs.cache.outputs.cache-key }} | ||
| fail-on-miss: false # First time create cache (if not already exists) | ||
| python-version: ${{ needs.cache.outputs.python-version }} | ||
| venv-dir: ${{ env.VENV }} | ||
| precommit-home: ${{ env.PRE_COMMIT_HOME }} | ||
| prek-home: ${{ env.PREK_HOME }} | ||
| ruff: | ||
| runs-on: ubuntu-latest | ||
| @@ -68,12 +67,12 @@ jobs: | ||
| persist-credentials: false | ||
| - name: Restore cached environment | ||
| id: cache-reuse | ||
| uses: plugwise/gh-actions/restore-venv@v1 | ||
| uses: plugwise/gh-actions/restore-venv@v2 | ||
| with: | ||
| cache-key: ${{ needs.cache.outputs.cache-key }} | ||
| python-version: ${{ needs.cache.outputs.python-version }} | ||
| venv-dir: ${{ env.VENV }} | ||
| precommit-home: ${{ env.PRE_COMMIT_HOME }} | ||
| prek-home: ${{ env.PREK_HOME }} | ||
| - name: Ruff (with fix) | ||
| run: | | ||
| . venv-${{ needs.cache.outputs.python-version }}/bin/activate | ||
| @@ -104,25 +103,20 @@ jobs: | ||
| uses: actions/checkout@v6 | ||
| - name: Restore cached environment | ||
| id: cache-reuse | ||
| uses: plugwise/gh-actions/restore-venv@v1 | ||
| uses: plugwise/gh-actions/restore-venv@v2 | ||
| with: | ||
| cache-key: ${{ needs.cache.outputs.cache-key }} | ||
| python-version: ${{ needs.cache.outputs.python-version }} | ||
| venv-dir: ${{ env.VENV }} | ||
| precommit-home: ${{ env.PRE_COMMIT_HOME }} | ||
| prek-home: ${{ env.PREK_HOME }} | ||
| - name: Verify commit | ||
| run: | | ||
| . venv-${{ needs.cache.outputs.python-version }}/bin/activate | ||
| pre-commit run --show-diff-on-failure --color=always --all-files --hook-stage manual pylint | ||
| - name: Biome lint | ||
| run: | | ||
| . venv-${{ needs.cache.outputs.python-version }}/bin/activate | ||
| mkdir -p ./tmp && curl -sL "https://github.com/biomejs/biome/releases/latest/download/biome-linux-x64" -o ./tmp/biome && chmod +x ./tmp/biome | ||
| pre-commit run --show-diff-on-failure --color=always --all-files --hook-stage manual biome | ||
| prek run --show-diff-on-failure --color=always --all-files --hook-stage manual pylint | ||
| - name: Lint markdown files | ||
| run: | | ||
| . venv-${{ needs.cache.outputs.python-version }}/bin/activate | ||
| pre-commit run --show-diff-on-failure --color=always --all-files --hook-stage manual markdownlint | ||
| prek run --show-diff-on-failure --color=always --all-files --hook-stage manual pymarkdown | ||
| pytest: | ||
| runs-on: ubuntu-latest | ||
| @@ -144,13 +138,13 @@ jobs: | ||
| python-version: ${{ matrix.python-version }} | ||
| - name: Restore cached environment | ||
| id: cache-reuse | ||
| uses: plugwise/gh-actions/restore-venv@v1 | ||
| uses: plugwise/gh-actions/restore-venv@v2 | ||
| with: | ||
| fail-on-miss: false # First time create cache (if not already exists) | ||
| cache-key: ${{ needs.cache.outputs.cache-key }} | ||
| python-version: ${{ steps.python.outputs.python-version }} # Force to installed python minor | ||
| venv-dir: ${{ env.VENV }} | ||
| precommit-home: ${{ env.PRE_COMMIT_HOME }} | ||
| prek-home: ${{ env.PREK_HOME }} | ||
| - name: Run all tests | ||
| run: | | ||
| . venv-${{ steps.python.outputs.python-version }}/bin/activate | ||
| @@ -177,12 +171,12 @@ jobs: | ||
| persist-credentials: false | ||
| - name: Restore cached environment | ||
| id: cache-reuse | ||
| uses: plugwise/gh-actions/restore-venv@v1 | ||
| uses: plugwise/gh-actions/restore-venv@v2 | ||
| with: | ||
| cache-key: ${{ needs.cache.outputs.cache-key }} | ||
| python-version: ${{ needs.cache.outputs.python-version }} | ||
| venv-dir: ${{ env.VENV }} | ||
| precommit-home: ${{ env.PRE_COMMIT_HOME }} | ||
| prek-home: ${{ env.PREK_HOME }} | ||
| - name: Run mypy | ||
| run: | | ||
| . venv-${{ needs.cache.outputs.python-version }}/bin/activate | ||
| @@ -222,12 +216,12 @@ jobs: | ||
| uses: actions/checkout@v6 | ||
| - name: Restore cached environment | ||
| id: cache-reuse | ||
| uses: plugwise/gh-actions/restore-venv@v1 | ||
| uses: plugwise/gh-actions/restore-venv@v2 | ||
| with: | ||
| cache-key: ${{ needs.cache.outputs.cache-key }} | ||
| python-version: ${{ needs.cache.outputs.python-version }} | ||
| venv-dir: ${{ env.VENV }} | ||
| precommit-home: ${{ env.PRE_COMMIT_HOME }} | ||
| prek-home: ${{ env.PREK_HOME }} | ||
| - name: Download all coverage artifacts | ||
| uses: actions/download-artifact@v7 | ||
| with: | ||
| @@ -304,12 +298,12 @@ jobs: | ||
| uses: actions/checkout@v6 | ||
| - name: Restore cached environment | ||
| id: cache-reuse | ||
| uses: plugwise/gh-actions/restore-venv@v1 | ||
| uses: plugwise/gh-actions/restore-venv@v2 | ||
| with: | ||
| cache-key: ${{ needs.cache.outputs.cache-key }} | ||
| python-version: ${{ needs.cache.outputs.python-version }} | ||
| venv-dir: ${{ env.VENV }} | ||
| precommit-home: ${{ env.PRE_COMMIT_HOME }} | ||
| prek-home: ${{ env.PREK_HOME }} | ||
| - name: Run complexity report (click to view details) | ||
| run: | | ||
| . venv-${{ needs.cache.outputs.python-version }}/bin/activate | ||
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| { "plugins": { "md013": { "enabled": false } } } | ||
CoMPaTech marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -5,6 +5,6 @@ | ||
| coverage | ||
| ruff | ||
| mypy | ||
| pre-commit | ||
| prek>=0.2.27 | ||
| pylint | ||
| pylint_strict_informational==0.1 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -36,8 +36,12 @@ def json_writer(manual_name: str, output: dict) -> None: | ||
| adam_multiple_devices_per_zone = base.copy() | ||
| # Change schedule to not present for "446ac08dd04d4eff8ac57489757b7314" | ||
| adam_multiple_devices_per_zone["446ac08dd04d4eff8ac57489757b7314"]["available_schedules"] = [] | ||
| adam_multiple_devices_per_zone["446ac08dd04d4eff8ac57489757b7314"]["select_schedule"] = None | ||
| adam_multiple_devices_per_zone["446ac08dd04d4eff8ac57489757b7314"][ | ||
| "available_schedules" | ||
| ] = [] | ||
| adam_multiple_devices_per_zone["446ac08dd04d4eff8ac57489757b7314"][ | ||
| "select_schedule" | ||
| ] = None | ||
CoMPaTech marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| json_writer("m_adam_multiple_devices_per_zone", adam_multiple_devices_per_zone) | ||
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.