👷 Use black[jupyter] (#847)

* 👷 Use black[jupyter]

* 👷 Add missing matrix
This commit is contained in:
Nato Boram
2023-07-23 23:30:01 -04:00
committed by GitHub
parent 18067aa85d
commit ffc99dbd32
4 changed files with 805 additions and 783 deletions

View File

@@ -4,10 +4,19 @@ on: [pull_request]
permissions:
contents: write
jobs:
pull_format:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.10"]
os: [ubuntu-latest]
fail-fast: false
continue-on-error: true
steps:
- name: checkout
continue-on-error: true
@@ -15,15 +24,14 @@ jobs:
with:
ref: ${{ github.head_ref }}
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Black
run: pip install black
run: pip install "black[jupyter]"
- name: Run Black
# run: black $(git ls-files '*.py')

View File

@@ -8,9 +8,17 @@ on:
permissions:
contents: write
pull-requests: write
jobs:
push_format:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.10"]
os: [ubuntu-latest]
fail-fast: false
steps:
- uses: actions/checkout@v3
with:
@@ -22,7 +30,7 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Install Black
run: pip install black
run: pip install "black[jupyter]"
- name: Run Black
# run: black $(git ls-files '*.py')
@@ -36,7 +44,7 @@ jobs:
git config --local user.name "github-actions[bot]"
git add --all
git commit -m "Format code"
- name: Create Pull Request
if: steps.commitback.outcome == 'success'
continue-on-error: true