Skip to content

Ruff fix

Ruff fix #1110

Workflow file for this run

name: Ruff
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Install Python
uses: actions/setup-python@v6
with:
python-version: "3.11"
- name: Cache Poetry dependencies
uses: actions/cache@v3
with:
path: |
~/.cache/pypoetry
~/.cache/pip
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}
restore-keys: |
${{ runner.os }}-poetry-
- name: Install Poetry
run: |
python -m pip install --upgrade pip
pip install poetry
- name: Install dependencies with Poetry
run: |
poetry config virtualenvs.create false
poetry install --no-interaction --no-ansi --with dev
- name: Run linting and formatting checks
run: |
poetry run ruff check gefapi/ tests/
poetry run ruff format --check gefapi/ tests/