All the other workflow YAML files use vertical whitespace around top-level items. Also remove spurious comment, the features in the linked doc aren't actually used in this workflow (any more?). This work was funded through GitHub Sponsors. Signed-off-by: Angus Gratton <angus@redyak.com.au>
14 lines
351 B
YAML
14 lines
351 B
YAML
name: Python code lint and formatting with ruff
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
ruff:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
# ruff version should be kept in sync with .pre-commit-config.yaml
|
|
- run: pip install --user ruff==0.1.3
|
|
- run: ruff check --output-format=github .
|
|
- run: ruff format --diff .
|