Skip to content

HSPC-179: Fix tests for hs-test-python #109

HSPC-179: Fix tests for hs-test-python

HSPC-179: Fix tests for hs-test-python #109

Workflow file for this run

name: Auto format
on:
push:
branches:
- master
- release
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: true
jobs:
auto_format:
name: Auto format with ruff
runs-on: arc-runners-small
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
- name: Get Python version
id: python_version
run: echo "python_version=$(head -n 1 .python-version)" >> $GITHUB_OUTPUT
shell: bash
- uses: ./.github/workflows/actions/prepare
with:
python-version: ${{ steps.python_version.outputs.python_version }}
- name: Check files using the ruff formatter
run: |
poetry run ruff check --fix --unsafe-fixes --preview --exit-zero .
poetry run ruff format .
shell: bash
- name: Commit changes
uses: EndBug/add-and-commit@v9
with:
fetch: false
default_author: github_actions
message: 'Backend: Auto format'
add: '.'