From 37764e6b887768d8d45c61232e9487cd8a35ac8e Mon Sep 17 00:00:00 2001 From: Nicholas Felt Date: Mon, 4 Mar 2024 10:38:53 -0800 Subject: [PATCH] ci: Update dependency updater workflow to run pre-commit, but to skip the hooks that are unable to run and make no changes to the codebase. --- .../update-python-and-pre-commit-dependencies.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/update-python-and-pre-commit-dependencies.yml b/.github/workflows/update-python-and-pre-commit-dependencies.yml index 1073a7c6d..af3d06786 100644 --- a/.github/workflows/update-python-and-pre-commit-dependencies.yml +++ b/.github/workflows/update-python-and-pre-commit-dependencies.yml @@ -29,10 +29,12 @@ jobs: passphrase: ${{ secrets.TEK_OPENSOURCE_GPG_SIGNING_KEY_PASSPHRASE }} git_user_signingkey: true git_commit_gpgsign: true - - name: Run updater script and pre-commit - run: | - python scripts/update_development_dependencies.py --no-install - python -m pre_commit run --all + - name: Run updater script + run: python scripts/update_development_dependencies.py --no-install + - name: Run pre-commit + env: + SKIP: pylint,pyright,pyright-verifytypes,pyroma + run: python -m pre_commit run --all - uses: stefanzweifel/git-auto-commit-action@v5 with: commit_message: 'ci: Update python linters and pre-commit dependencies.'