Skip to content

Upgrade to Django 4.2 #54

Upgrade to Django 4.2

Upgrade to Django 4.2 #54

Workflow file for this run

name: Linters
# Without review-dog… maybe it’s a bit of waste to make them run twice, but anyway.
on: [push, pull_request]
jobs:
black-changed:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Check for changed python files in commit or pull request
uses: tj-actions/changed-files@v41
id: changed-files
with:
files: "**/*.py"
- name: format files
uses: psf/black@stable
if: steps.changed-files.outputs.all_changed_files != ''
with:
# formatting all the files, since filtering didn’t work, and then filtering them manually
# src: "${{ steps.changed-files.outputs.all_changed_files }}"
options: ""
- name: (Files that are incorrectly formatted) ∩ (Files that have been changed in this commit or pull request)
run: git diff --exit-code -- ${{ steps.changed-files.outputs.all_changed_files }}
if: steps.changed-files.outputs.all_changed_files != ''