Skip to content

Merge branch 'main' of github.com:aksharahegde/django-jet-3-calm #1

Merge branch 'main' of github.com:aksharahegde/django-jet-3-calm

Merge branch 'main' of github.com:aksharahegde/django-jet-3-calm #1

Workflow file for this run

name: autofix.ci
on:
pull_request:
push:
branches: [ "main" ]
permissions:
contents: read
jobs:
autofix:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Fix lint errors with https://github.com/charliermarsh/ruff
- uses: install-pinned/ruff@f6e93113a117b69c0005a80c088b9f3d0265b04a
- run: ruff check --fix-only .
- run: ruff format .
# Upgrade to the latest Python syntax with https://github.com/asottile/pyupgrade
- uses: install-pinned/pyupgrade@25433bd037e5227fd0187b90e306324eceda414d
- 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@9397de6904c0791c23a16ce081245fc7498cf2b0
- 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@3a72c2c2d7c06633baceba03d3549e4b39e60472
- run: black .
- uses: autofix-ci/action@dd55f44df8f7cdb7a6bf74c78677eb8acd40cd0a