From 0946882db8003d5e8c1b370e29a34891152981ea Mon Sep 17 00:00:00 2001 From: Patrick Armstrong Date: Wed, 31 Jul 2024 01:44:52 -0500 Subject: [PATCH 1/3] black linter action --- .github/workflows/black-formatter.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/black-formatter.yml diff --git a/.github/workflows/black-formatter.yml b/.github/workflows/black-formatter.yml new file mode 100644 index 00000000..e3548699 --- /dev/null +++ b/.github/workflows/black-formatter.yml @@ -0,0 +1,20 @@ +name: Black Linter +on: + push: + branches: + - main + pull_request: + branches: + - main + workflow_dispatch: + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: psf/black@stable + with: + options: "--check --verbose" + src: "./src" + version: "~= 22.0" From e2b8480ce76f80066b2f7bb0731c3aebaf91c811 Mon Sep 17 00:00:00 2001 From: Patrick Armstrong Date: Wed, 31 Jul 2024 01:45:42 -0500 Subject: [PATCH 2/3] black linter action --- .github/workflows/black-formatter.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/black-formatter.yml b/.github/workflows/black-formatter.yml index e3548699..bc51abbb 100644 --- a/.github/workflows/black-formatter.yml +++ b/.github/workflows/black-formatter.yml @@ -16,5 +16,4 @@ jobs: - uses: psf/black@stable with: options: "--check --verbose" - src: "./src" version: "~= 22.0" From 4fd0994bc445858bba83b2e9e5d3fcb3c4a83120 Mon Sep 17 00:00:00 2001 From: Patrick Armstrong Date: Wed, 31 Jul 2024 01:48:19 -0500 Subject: [PATCH 3/3] black linter action --- .github/workflows/black-formatter.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/black-formatter.yml b/.github/workflows/black-formatter.yml index bc51abbb..d9cdd1cd 100644 --- a/.github/workflows/black-formatter.yml +++ b/.github/workflows/black-formatter.yml @@ -15,5 +15,5 @@ jobs: - uses: actions/checkout@v3 - uses: psf/black@stable with: - options: "--check --verbose" + options: "--check --verbose --diff" version: "~= 22.0"