Skip to content

Bump pytest from 8.3.2 to 8.3.3 in the python-packages group (#18) #21

Bump pytest from 8.3.2 to 8.3.3 in the python-packages group (#18)

Bump pytest from 8.3.2 to 8.3.3 in the python-packages group (#18) #21

Workflow file for this run

name: Style
on:
push:
branches:
- master
jobs:
auto-format:
name: Lint & format code with ruff
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- run: pip install ruff
- name: Lint & format code with ruff and commit any changes
run: |
ruff check --output-format=github --fix .
ruff format .
git config --global user.name 'Auto ruff formatter'
git config --global user.email 'claudiugeorgiu@users.noreply.github.com'
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
git checkout ${GITHUB_REF#refs/heads/}
git diff --quiet || git commit -am "Format code with ruff [auto]" && git push