mirror of
https://github.com/RoboSats/robosats.git
synced 2024-12-13 19:06:26 +00:00
dafdbf3b2d
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 4 to 5. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](https://github.com/actions/setup-python/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/setup-python 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>
42 lines
883 B
YAML
42 lines
883 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@v4
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.12'
|
|
cache: pip
|
|
- 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
|