2023-07-25 02:53:15 +00:00
|
|
|
# https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
|
2023-10-17 02:18:44 +00:00
|
|
|
name: Python code lint and formatting with ruff
|
2023-07-25 02:53:15 +00:00
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
|
|
ruff:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-10-17 01:49:26 +00:00
|
|
|
- uses: actions/checkout@v4
|
2023-10-17 02:18:44 +00:00
|
|
|
- run: pip install --user ruff==0.1.2
|
2023-10-17 01:49:26 +00:00
|
|
|
- run: ruff check --output-format=github .
|
2023-10-17 02:18:44 +00:00
|
|
|
- run: ruff format --diff .
|