14 lines
345 B
YAML
14 lines
345 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: pipx install ruff==0.9.6
|
|
- run: ruff check --output-format=github .
|
|
- run: ruff format --diff .
|