mirror of
https://github.com/RoboSats/robosats.git
synced 2025-02-22 05:09:01 +00:00
parent
3d3da78f8a
commit
04f45e4b87
13
.github/workflows/py-linter.yml
vendored
13
.github/workflows/py-linter.yml
vendored
@ -1,15 +1,20 @@
|
|||||||
name: Python Lint
|
name: Python Backend Lint
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
pull_request:
|
paths:
|
||||||
|
- '**.py'
|
||||||
|
pull_request_target:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
paths:
|
paths:
|
||||||
- '**.py'
|
- '**.py'
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
checks: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
run-linters:
|
run-linters:
|
||||||
name: Run linters
|
name: Run linters
|
||||||
@ -26,6 +31,10 @@ jobs:
|
|||||||
uses: wearerequired/lint-action@v2
|
uses: wearerequired/lint-action@v2
|
||||||
with:
|
with:
|
||||||
auto_fix: true
|
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
|
black: true
|
||||||
flake8: true
|
flake8: true
|
||||||
# Flake8 doesn't support auto-fixing
|
# Flake8 doesn't support auto-fixing
|
||||||
|
Loading…
Reference in New Issue
Block a user