Add GitHub Actions workflow to check black formatting

This commit is contained in:
kpj
2022-02-27 15:21:09 +01:00
parent e331f23bb0
commit 13885968e3
3 changed files with 7 additions and 71 deletions

View File

@@ -81,20 +81,19 @@ jobs:
run: |
cd src/
pycodestyle
whitespace:
formatting:
runs-on: ubuntu-20.04
steps:
-
name: Checkout
uses: actions/checkout@v2
-
name: Ensure there are no trailing spaces
run: |
.github/workflow-scripts/check-trailing-whitespace
-
name: Ensure all text files end with a trailing newline
run: |
.github/workflow-scripts/check-trailing-whitespace
name: Run black
uses: psf/black@stable
with:
options: "--check --diff --verbose"
src: "./src"
version: "22.1.0"
tests:
runs-on: ubuntu-20.04