Skip to content

Fixed the recommended Qodana inspections #36

Fixed the recommended Qodana inspections

Fixed the recommended Qodana inspections #36

Workflow file for this run

name: Linting
on:
push:
branches:
- main
pull_request:
permissions:
contents: write
defaults:
run:
working-directory: ./
jobs:
lint-format:
runs-on: ubuntu-latest
name: Reformat Code
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.ref }}
fetch-depth: 0
- name: Install poetry
run: |
pipx install poetry
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version-file: 'pyproject.toml'
cache: 'poetry'
- name: Install Dependencies
run: poetry install --no-interaction --sync --all-extras
- name: Run Formatter
run: poetry run ruff format .
- name: Commit Changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: 'style: Apply automated code formatting [skip ci]'
commit_options: '--no-verify'
repository: .
commit_user_name: github-actions[bot]
commit_user_email: github-actions[bot]@users.noreply.github.com
commit_author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>