From 2c9283d02493cc6c3ec3e680356709614bf415f0 Mon Sep 17 00:00:00 2001 From: Gary Hu Date: Fri, 8 Mar 2024 08:18:52 -0600 Subject: [PATCH] Add a black format check --- .github/workflows/tests.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 958b0aac8a..cf990e3d7e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -20,7 +20,7 @@ concurrency: jobs: clang-format: - name: Formatting Check + name: C++ Formatting Check runs-on: ubuntu-latest strategy: matrix: @@ -35,6 +35,15 @@ jobs: with: clang-format-version: "17" check-path: ${{ matrix.path }} + black: + name: Python Formatting Check + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: psf/black@stable + with: + options: "--check -v" + src: "python/neml2_wrap tests/python" copyright: name: Copyright check runs-on: ubuntu-latest