1
0
mirror of synced 2024-11-12 01:40:51 +01:00

Add workflow for automatic formatting

This commit is contained in:
Ftps 2023-04-15 12:00:19 +09:00 committed by GitHub
parent 3297f1e518
commit 9111c5dbc1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

16
.github/workflows/black.yml vendored Normal file
View File

@ -0,0 +1,16 @@
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')