Skip to content

Commit

Permalink
python: introduce a python formatting CI check
Browse files Browse the repository at this point in the history
Run the official psf/black formatter action in CI in order to check
that python scripts are formatted correctly. This check takes only
about 10 seconds and currently runs on only the two addr2line files.
  • Loading branch information
travisdowns committed Sep 18, 2024
1 parent 3132d3b commit 51622ed
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/python-lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Python format

on: [push, pull_request]

jobs:
python-format:
name: Enforce python format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: psf/[email protected]
with:
version: "24.8.0"
src: ./scripts
# override options so that we can specify only specific files for now
options: "--check --diff --include=.*addr2line.*"

0 comments on commit 51622ed

Please sign in to comment.