2023-04-16 05:11:26 +02:00
|
|
|
name: pull format
|
|
|
|
|
|
|
|
on: [pull_request]
|
|
|
|
|
2023-04-17 04:49:57 +02:00
|
|
|
permissions:
|
|
|
|
contents: write
|
2023-07-24 05:30:01 +02:00
|
|
|
|
2023-04-16 05:11:26 +02:00
|
|
|
jobs:
|
|
|
|
pull_format:
|
2023-07-24 05:30:01 +02:00
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
python-version: ["3.10"]
|
|
|
|
os: [ubuntu-latest]
|
|
|
|
fail-fast: false
|
|
|
|
|
2023-04-16 05:11:26 +02:00
|
|
|
continue-on-error: true
|
2023-07-24 05:30:01 +02:00
|
|
|
|
2023-04-16 05:11:26 +02:00
|
|
|
steps:
|
2023-04-17 04:49:57 +02:00
|
|
|
- name: checkout
|
|
|
|
continue-on-error: true
|
|
|
|
uses: actions/checkout@v3
|
2023-04-16 05:29:57 +02:00
|
|
|
with:
|
|
|
|
ref: ${{ github.head_ref }}
|
2023-04-17 04:49:57 +02:00
|
|
|
fetch-depth: 0
|
2023-07-24 05:30:01 +02:00
|
|
|
|
2023-04-16 05:11:26 +02:00
|
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
|
|
uses: actions/setup-python@v4
|
|
|
|
with:
|
|
|
|
python-version: ${{ matrix.python-version }}
|
2023-04-16 05:29:57 +02:00
|
|
|
|
|
|
|
- name: Install Black
|
2023-07-24 05:30:01 +02:00
|
|
|
run: pip install "black[jupyter]"
|
2023-04-16 05:29:57 +02:00
|
|
|
|
|
|
|
- name: Run Black
|
2023-04-16 05:11:26 +02:00
|
|
|
# run: black $(git ls-files '*.py')
|
|
|
|
run: black .
|