Skip to content

Commit

Permalink
Fix pre-commit?
Browse files Browse the repository at this point in the history
  • Loading branch information
carmocca committed Nov 24, 2022
1 parent 92d1420 commit fa07610
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions .github/workflows/check-code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,21 +51,7 @@ jobs:
with:
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v4

- name: Determine cache hash
run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV

- name: Cache pre-commit
uses: actions/cache@v3
with:
path: ~/.cache/pre-commit
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}

- name: Run pre-commit
uses: pre-commit/[email protected]
# this action also provides an additional behaviour when used in private repositories
# when configured with a github token, the action will push back fixes to the pull request branch
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
with:
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit fa07610

Please sign in to comment.