robosats/.github/workflows/py-linter.yml

42 lines
883 B
YAML
Raw Normal View History

2022-10-20 13:30:44 +00:00
name: "Lint: Python Coordinator"
on:
push:
branches:
- main
paths:
- '**.py'
pull_request_target:
branches:
- main
paths:
- '**.py'
permissions:
checks: write
jobs:
run-linters:
name: Run linters
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
2023-11-14 13:58:46 +00:00
python-version: '3.12'
cache: pip
2023-11-14 13:58:46 +00:00
- run: pip install -r requirements_dev.txt
- name: Run linters
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
flake8_auto_fix: false