From 1076e4acb065e166f62ddcd2bb003ca4a66ec630 Mon Sep 17 00:00:00 2001 From: Typpi <20943337+Nick2bad4u@users.noreply.github.com> Date: Fri, 17 May 2024 15:54:07 -0400 Subject: [PATCH] Update black.yml --- .github/workflows/black.yml | 23 +++++------------------ 1 file changed, 5 insertions(+), 18 deletions(-) diff --git a/.github/workflows/black.yml b/.github/workflows/black.yml index f5b5e7d..5539536 100644 --- a/.github/workflows/black.yml +++ b/.github/workflows/black.yml @@ -1,23 +1,10 @@ name: black-formatter + on: [push, pull_request] + jobs: - linter_name: - name: runner / black + lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Check files using the black formatter - uses: datadog/action-py-black-formatter@v2.1 - id: action_black - - name: Create Pull Request - if: steps.action_black.outputs.is_formatted == 'true' - uses: peter-evans/create-pull-request@v3 - with: - token: ${{ secrets.GITHUB_TOKEN }} - title: "Format Python code with psf/black push" - commit-message: ":art: Format Python code with psf/black" - body: | - There appear to be some python formatting errors in ${{ github.sha }}. This pull request - uses the [psf/black](https://github.com/psf/black) formatter to fix these issues. - base: ${{ github.head_ref }} # Creates pull request onto pull request or commit branch - branch: actions/black + - uses: actions/checkout@v5 + - uses: psf/black@stable