Skip to content

Fix transformers API compatibility: support v4.26+ and v5.0+ with version-aware parameter selection #2385

Fix transformers API compatibility: support v4.26+ and v5.0+ with version-aware parameter selection

Fix transformers API compatibility: support v4.26+ and v5.0+ with version-aware parameter selection #2385

Workflow file for this run

name: Code formatting
# see: https://help.github.com/en/actions/reference/events-that-trigger-workflows
on:
pull_request: {}
defaults:
run:
shell: bash
permissions: {}
jobs:
pre-commit-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- name: Set $PY environment variable
run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV
- uses: actions/cache@v3
with:
path: ~/.cache/pre-commit
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
- uses: pre-commit/[email protected]