robosats/.github/workflows/py-linter.yml
dependabot[bot] c31c5b4218
Bump actions/checkout from 2 to 3 (#514)
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-02 23:55:36 +00:00

42 lines
901 B
YAML

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@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: pip
- run: pip install black==22.8.0 flake8==5.0.4 isort==5.10.1
- 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