From 04f45e4b87519b18df52df46f6adb8d0eab88fad Mon Sep 17 00:00:00 2001 From: Reckless_Satoshi <90936742+Reckless-Satoshi@users.noreply.github.com> Date: Thu, 20 Oct 2022 13:19:20 +0000 Subject: [PATCH] Fixes to python auto-formatting (#291) Fix pull_request_target --- .github/workflows/py-linter.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/py-linter.yml b/.github/workflows/py-linter.yml index 2f5b21aa..463758d9 100644 --- a/.github/workflows/py-linter.yml +++ b/.github/workflows/py-linter.yml @@ -1,15 +1,20 @@ -name: Python Lint +name: Python Backend Lint on: push: branches: - main - pull_request: + paths: + - '**.py' + pull_request_target: branches: - main paths: - '**.py' +permissions: + checks: write + jobs: run-linters: name: Run linters @@ -26,6 +31,10 @@ jobs: uses: wearerequired/lint-action@v2 with: auto_fix: true + git_name: "Python Lint Action" + commit_message: "Fix code style issues with ${linter}" + commit: false + neutral_check_on_warning: true black: true flake8: true # Flake8 doesn't support auto-fixing