⬆️ Update dependency zizmor to v1.29.0 #1031
Workflow file for this run
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
| name: Linting | |
| # yamllint disable-line rule:truthy | |
| on: | |
| push: | |
| pull_request: | |
| workflow_dispatch: | |
| env: | |
| DEFAULT_PYTHON: "3.13" | |
| permissions: | |
| contents: read | |
| jobs: | |
| codespell: | |
| name: codespell | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: ⤵️ Check out code from GitHub | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: 🏗 Set up Poetry | |
| run: pipx install poetry | |
| - name: 🏗 Set up Python ${{ env.DEFAULT_PYTHON }} | |
| id: python | |
| uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 | |
| with: | |
| python-version: ${{ env.DEFAULT_PYTHON }} | |
| cache: "poetry" | |
| - name: 🏗 Install workflow dependencies | |
| run: | | |
| poetry config virtualenvs.create true | |
| poetry config virtualenvs.in-project true | |
| - name: 🏗 Install Python dependencies | |
| run: poetry install --no-interaction | |
| - name: 🚀 Check code for common misspellings | |
| run: poetry run prek run codespell --all-files | |
| ruff: | |
| name: Ruff | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: ⤵️ Check out code from GitHub | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: 🏗 Set up Poetry | |
| run: pipx install poetry | |
| - name: 🏗 Set up Python ${{ env.DEFAULT_PYTHON }} | |
| id: python | |
| uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 | |
| with: | |
| python-version: ${{ env.DEFAULT_PYTHON }} | |
| cache: "poetry" | |
| - name: 🏗 Install workflow dependencies | |
| run: | | |
| poetry config virtualenvs.create true | |
| poetry config virtualenvs.in-project true | |
| - name: 🏗 Install Python dependencies | |
| run: poetry install --no-interaction | |
| - name: 🚀 Run ruff linter | |
| run: poetry run ruff check --output-format=github . | |
| - name: 🚀 Run ruff formatter | |
| run: poetry run ruff format --check . | |
| prek-hooks: | |
| name: prek-hooks | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: ⤵️ Check out code from GitHub | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: 🏗 Set up Poetry | |
| run: pipx install poetry | |
| - name: 🏗 Set up Python ${{ env.DEFAULT_PYTHON }} | |
| id: python | |
| uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 | |
| with: | |
| python-version: ${{ env.DEFAULT_PYTHON }} | |
| cache: "poetry" | |
| - name: 🏗 Install workflow dependencies | |
| run: | | |
| poetry config virtualenvs.create true | |
| poetry config virtualenvs.in-project true | |
| - name: 🏗 Install Python dependencies | |
| run: poetry install --no-interaction | |
| - name: 🚀 Check Python AST | |
| run: poetry run prek run check-ast --all-files | |
| - name: 🚀 Check for case conflicts | |
| run: poetry run prek run check-case-conflict --all-files | |
| - name: 🚀 Check JSON files | |
| run: poetry run prek run check-json --all-files | |
| - name: 🚀 Check TOML files | |
| run: poetry run prek run check-toml --all-files | |
| - name: 🚀 Check YAML files | |
| run: poetry run prek run check-yaml --all-files | |
| - name: 🚀 Check End of Files | |
| run: poetry run prek run end-of-file-fixer --all-files | |
| - name: 🚀 Trim Trailing Whitespace | |
| run: poetry run prek run trailing-whitespace --all-files | |
| pylint: | |
| name: pylint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: ⤵️ Check out code from GitHub | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: 🏗 Set up Poetry | |
| run: pipx install poetry | |
| - name: 🏗 Set up Python ${{ env.DEFAULT_PYTHON }} | |
| id: python | |
| uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 | |
| with: | |
| python-version: ${{ env.DEFAULT_PYTHON }} | |
| cache: "poetry" | |
| - name: 🏗 Install workflow dependencies | |
| run: | | |
| poetry config virtualenvs.create true | |
| poetry config virtualenvs.in-project true | |
| - name: 🏗 Install Python dependencies | |
| run: poetry install --no-interaction | |
| - name: 🚀 Run pylint | |
| run: poetry run pylint src/tuya_device_handlers | |
| yamllint: | |
| name: yamllint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: ⤵️ Check out code from GitHub | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: 🏗 Set up Poetry | |
| run: pipx install poetry | |
| - name: 🏗 Set up Python ${{ env.DEFAULT_PYTHON }} | |
| id: python | |
| uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 | |
| with: | |
| python-version: ${{ env.DEFAULT_PYTHON }} | |
| cache: "poetry" | |
| - name: 🏗 Install workflow dependencies | |
| run: | | |
| poetry config virtualenvs.create true | |
| poetry config virtualenvs.in-project true | |
| - name: 🏗 Install Python dependencies | |
| run: poetry install --no-interaction | |
| - name: 🚀 Run yamllint | |
| run: poetry run yamllint . | |
| prettier: | |
| name: Prettier | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: ⤵️ Check out code from GitHub | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: 🏗 Set up Poetry | |
| run: pipx install poetry | |
| - name: 🏗 Set up Python ${{ env.DEFAULT_PYTHON }} | |
| id: python | |
| uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 | |
| with: | |
| python-version: ${{ env.DEFAULT_PYTHON }} | |
| cache: "poetry" | |
| - name: 🏗 Install workflow dependencies | |
| run: | | |
| poetry config virtualenvs.create true | |
| poetry config virtualenvs.in-project true | |
| - name: 🏗 Install Python dependencies | |
| run: poetry install --no-interaction | |
| - name: 🏗 Set up Node.js | |
| uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 | |
| with: | |
| node-version-file: ".nvmrc" | |
| cache: "npm" | |
| - name: 🏗 Install NPM dependencies | |
| run: npm install | |
| - name: 🚀 Run prettier | |
| run: poetry run prek run prettier --all-files | |
| zizmor: | |
| name: zizmor | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: ⤵️ Check out code from GitHub | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: 🏗 Set up Poetry | |
| run: pipx install poetry | |
| - name: 🏗 Set up Python ${{ env.DEFAULT_PYTHON }} | |
| id: python | |
| uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 | |
| with: | |
| python-version: ${{ env.DEFAULT_PYTHON }} | |
| cache: "poetry" | |
| - name: 🏗 Install workflow dependencies | |
| run: | | |
| poetry config virtualenvs.create true | |
| poetry config virtualenvs.in-project true | |
| - name: 🏗 Install Python dependencies | |
| run: poetry install --no-interaction | |
| - name: 🚀 Run zizmor | |
| run: poetry run zizmor .github/workflows/ |