From d79f6cbd7d95fc4f644cc0ef09f9952f16b6768c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Donncha=20=C3=93=20Cearbhaill?= Date: Mon, 30 Sep 2024 10:49:00 +0100 Subject: [PATCH] Run black linter on pull requests (#543) The black linter was only being run on pushes to main and not on opened PRs. We should run on both to avoid linting errors after a PR is merged. --- .github/workflows/black.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/black.yml b/.github/workflows/black.yml index d954264d1..5b3c345de 100644 --- a/.github/workflows/black.yml +++ b/.github/workflows/black.yml @@ -1,5 +1,10 @@ name: Black -on: [push] + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] jobs: black: