Skip to content

SDK Linter 6115/merge by @thiagohora #5531

SDK Linter 6115/merge by @thiagohora

SDK Linter 6115/merge by @thiagohora #5531

---
name: SDK Linter
run-name: "SDK Linter ${{ github.ref_name }} by @${{ github.actor }}"
on:
pull_request:
paths:
- 'sdks/python/**'
push:
branches:
- 'main'
paths:
- 'sdks/python/**'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
lint:
runs-on: ubuntu-latest
timeout-minutes: 5
defaults:
run:
working-directory: sdks/python
steps:
- uses: actions/checkout@v6
- name: install pre-commit
run: pip install pre-commit
- name: linting
run: pre-commit run --all-files --show-diff-on-failure