Add Black formatting GitHub workflow

This commit is contained in:
Esa Jokinen 2024-04-05 16:59:05 +03:00
parent 88d3cf87e2
commit 51f35e2566

20
.github/workflows/black.yml vendored Normal file
View file

@ -0,0 +1,20 @@
name: Black formatting
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
black:
name: Black
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Check Black formatting for Python scripts
uses: psf/black@stable
with:
options: --check --diff --verbose
src: .