format with ruff in CI

This commit is contained in:
David Paul Graham 2026-03-14 08:57:27 -04:00
parent d7fefc1198
commit 6a4958382e
No known key found for this signature in database
GPG key ID: ACDB045B782EF333

View file

@ -10,18 +10,20 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ruff black
- uses: actions/checkout@v3
- name: Lint with Ruff
run: |
ruff check .
- name: "Set up Python"
uses: actions/setup-python@v6
- name: Lint with Black
run: |
black --check .
- name: "install Ruff"
uses: astral-sh/ruff-action@v3
with:
version: ">=0.15,<0.16"
# ToDo: use pyrpoject.toml as version-file
# version-file: "pyproject.toml"
- name: "Check formatting"
run: ruff format --check --diff
test:
strategy: