2023-10-21 06:40:27 +00:00
|
|
|
name: Python code lint and formatting with ruff
|
2024-01-31 04:07:15 +00:00
|
|
|
|
2023-03-08 15:09:36 +00:00
|
|
|
on: [push, pull_request]
|
2024-01-31 04:07:15 +00:00
|
|
|
|
2023-03-08 15:09:36 +00:00
|
|
|
jobs:
|
|
|
|
ruff:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-09-04 19:42:14 +00:00
|
|
|
- uses: actions/checkout@v4
|
2024-01-31 00:09:52 +00:00
|
|
|
# ruff version should be kept in sync with .pre-commit-config.yaml
|
2023-10-21 06:40:27 +00:00
|
|
|
- run: pip install --user ruff==0.1.3
|
2023-10-17 01:47:04 +00:00
|
|
|
- run: ruff check --output-format=github .
|
2023-10-21 06:40:27 +00:00
|
|
|
- run: ruff format --diff .
|