From 3151b9255872c93bfd771029fc02afbda053dfcd Mon Sep 17 00:00:00 2001 From: Roy Smart Date: Mon, 29 Jan 2024 10:12:27 -0700 Subject: [PATCH] Added Github workflow to run Black formatter. --- .github/workflows/black.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/black.yml diff --git a/.github/workflows/black.yml b/.github/workflows/black.yml new file mode 100644 index 0000000..9a881a8 --- /dev/null +++ b/.github/workflows/black.yml @@ -0,0 +1,17 @@ +name: Black + +on: + push: + branches: + - main + pull_request: + +jobs: + black: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: psf/black@stable + with: + options: "--check --verbose --diff" + src: "./interface-region-imaging-spectrograph"