Fix Black in GHA for Python 2.7 (#680)

(At least until Python 2.7 support is finally eliminated)
This commit is contained in:
Karl Kroening 2022-07-11 13:51:06 -07:00 committed by GitHub
parent ed70f2e619
commit ef00863269
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,7 +38,8 @@ jobs:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: psf/black@21.12b0 # TODO: upgrade after dropping Python 2 support. - name: Black
with: run: |
src: ffmpeg # TODO: also format `examples`. # TODO: use standard `psf/black` action after dropping Python 2 support.
version: 21.12b0 pip install black==21.12b0 click==8.0.2 # https://stackoverflow.com/questions/71673404
black ffmpeg --check --color --diff