17 lines
425 B
YAML
17 lines
425 B
YAML
name: Black
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
format_code:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
- run: pip install --upgrade pip
|
|
- run: pip install black[jupyter]
|
|
- run: black $(git ls-files '*.py' 'ipynb')
|