From a3dafb6c53e5580dcde6e0362761d58ca36583ee Mon Sep 17 00:00:00 2001 From: thegamecracks <61257169+thegamecracks@users.noreply.github.com> Date: Wed, 10 Jul 2024 14:06:22 -0400 Subject: [PATCH] ci: add black-lint.yml --- .github/workflows/black-lint.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/black-lint.yml diff --git a/.github/workflows/black-lint.yml b/.github/workflows/black-lint.yml new file mode 100644 index 0000000..3631ed0 --- /dev/null +++ b/.github/workflows/black-lint.yml @@ -0,0 +1,21 @@ +name: Lint with black + +on: + push: + paths: + - 'src/**.py' + - 'tests/**.py' + pull_request: + branches: + - main + paths: + - 'src/**.py' + - 'tests/**.py' + +jobs: + lint: + name: Run black + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: psf/black@24.4.2