Skip to content

Initial commit

Initial commit #1

Workflow file for this run

name: Formatting (pre-commit)
on:
pull_request:
push:
branches:
- main
workflow_dispatch:
jobs:
pre-commit:
name: Format
runs-on: ubuntu-24.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install clang-format-18
run: sudo apt-get install clang-format-18
- name: Run pre-commit
uses: pre-commit/[email protected]
id: precommit
- name: Upload pre-commit changes
if: failure() && steps.precommit.outcome == 'failure'
uses: rhaschke/upload-git-patch-action@main
with:
name: pre-commit