Skip to content

Bump install-pinned/ruff from 50364bc42dfc4f7ed30b3a2c09a14c8c43a23bdf to 04a3e3b66ce9336f758b9e95e6fff582e0f99e48 in the github-actions group #283

Bump install-pinned/ruff from 50364bc42dfc4f7ed30b3a2c09a14c8c43a23bdf to 04a3e3b66ce9336f758b9e95e6fff582e0f99e48 in the github-actions group

Bump install-pinned/ruff from 50364bc42dfc4f7ed30b3a2c09a14c8c43a23bdf to 04a3e3b66ce9336f758b9e95e6fff582e0f99e48 in the github-actions group #283

Workflow file for this run

name: autofix.ci
on:
workflow_call:
pull_request:
push:
branches: [ "main" ]
permissions:
contents: read
jobs:
autofix:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Upgrade to the latest Python syntax with https://github.com/asottile/pyupgrade
- uses: install-pinned/pyupgrade@2ef0e31dd8755f2a8b9f170ebfb241cb88b4f1ed
- name: Run pyupgrade
run: |
shopt -s globstar
pyupgrade --exit-zero-even-if-changed --py39-plus **/*.py
# Sort imports with https://github.com/asottile/reorder_python_imports
- uses: install-pinned/reorder_python_imports@4919b538f4633769fd61b53a217ee8189332f49e
- name: Run reorder-python-imports
run: |
shopt -s globstar
reorder-python-imports --exit-zero-even-if-changed --py39-plus **/*.py
# Remove unused imports with https://github.com/PyCQA/autoflake
- uses: install-pinned/autoflake@eefdf266065c9cbe80ff5285a8a3307ad97d7958
- run: autoflake --in-place --remove-all-unused-imports -r .
# Format code with https://github.com/psf/black
- uses: install-pinned/black@7d0c549f757100f9a9d85c092f726db7be7321ea
- run: black .
- uses: autofix-ci/action@d3e591514b99d0fca6779455ff8338516663f7cc