Fixes to python auto-formatting (#291)

Fix pull_request_target
This commit is contained in:
Reckless_Satoshi 2022-10-20 13:19:20 +00:00 committed by GitHub
parent 3d3da78f8a
commit 04f45e4b87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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