Skip to content

Bump ruff from 0.5.5 to 0.6.3 #150

Bump ruff from 0.5.5 to 0.6.3

Bump ruff from 0.5.5 to 0.6.3 #150

Workflow file for this run

---
name: pre-commit
on:
pull_request:
push:
branches: [main]
jobs:
pre-commit:
name: pre-commit
strategy:
fail-fast: true
matrix:
python-version: ["3.11", "3.12"]
runs-on: ["ubuntu-latest"]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
# cache: 'poetry'
- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
- name: Add poetry to path
run: echo "$(poetry env info --path)/bin" >> $GITHUB_PATH
- name: Set up cache
uses: actions/cache@v4
id: cached-poetry-dependencies
with:
path: .venv
key: venv-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('poetry.lock') }}
- name: Install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install --no-interaction
- name: Run pre-commit
uses: pre-commit/action@v3.0.1