Skip to content

[feat] Support EP for transformers >= 5.0 #29

[feat] Support EP for transformers >= 5.0

[feat] Support EP for transformers >= 5.0 #29

Workflow file for this run

name: Lint Auto-fix
on:
pull_request:
types: [opened, synchronize]
permissions:
contents: write
jobs:
lint-fix:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.9"
- name: Install linters
run: |
python -m pip install black==23.12.1 isort==5.13.2
- name: Run black
run: black --line-length=120 .
- name: Run isort
run: isort --profile black .
- name: Check for changes
id: check
run: |
if git diff --quiet; then
echo "changed=false" >> "$GITHUB_OUTPUT"
else
echo "changed=true" >> "$GITHUB_OUTPUT"
fi
- name: Commit fixes
if: steps.check.outputs.changed == 'true'
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add -A
git commit -m "style: auto-fix lint (black + isort)"
git push