This repository has been archived by the owner on Jul 16, 2024. It is now read-only.
Bump black from 22.10.0 to 23.3.0 (#9) #18
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Formatting validation using black | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
strategy: | |
matrix: | |
python-version: ['3.9'] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
pip install -U pip | |
# We manually upgrade it to make the builds stable | |
pip install black==22.3.0 | |
- name: Format with black | |
run: | | |
black . | |
if git status --porcelain | grep .; then git --no-pager diff; exit 1; fi |