Skip to content

Build(deps-dev): bump mypy from 1.13.0 to 1.14.0 #300

Build(deps-dev): bump mypy from 1.13.0 to 1.14.0

Build(deps-dev): bump mypy from 1.13.0 to 1.14.0 #300

Workflow file for this run

# This workflow runs the Ruff linter
name: Ruff
on:
push:
branches:
- '**'
pull_request:
branches:
- '**'
permissions:
contents: write
issues: write
pull-requests: write
jobs:
ruff:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install Poetry
uses: Gr1N/setup-poetry@v9
- name: Install library and dependencies
run: |
poetry run pip install --upgrade pip setuptools
poetry install --only linters
- name: Lint with Ruff
id: lint
run: |
poetry run ruff check --fix .
echo "RUFF_SUCCESS=$([ $? -eq 0 ])" >> $GITHUB_OUTPUT
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
if: ${{ !steps.lint.outputs.RUFF_SUCCESS }}
with:
token: ${{ secrets.GITHUB_TOKEN }}
title: "Format Python code with Ruff push"
commit-message: "[PATCH] Ruff auto-format"
body: |
There appear to be some python formatting errors in ${{ github.sha }}.
This pull request uses the Ruff formatter to fix some of these issues.
base: ${{ github.head_ref }} # Creates pull request onto pull request or commit branch
branch: actions/ruff