Skip to content

Merge branch 'main' of https://github.com/UW-Macrostrat/macrostrat #447

Merge branch 'main' of https://github.com/UW-Macrostrat/macrostrat

Merge branch 'main' of https://github.com/UW-Macrostrat/macrostrat #447

Workflow file for this run

name: Format code and sort imports
on:
pull_request:
branches: [ main ]
push:
branches: [ main ]
jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
submodules: recursive
- name: "Set up Python"
uses: actions/setup-python@v6
with:
python-version-file: "pyproject.toml"
- name: Install uv
uses: astral-sh/setup-uv@v6
with:
enable-cache: true
- name: Install dependencies
run: uv sync --only-dev
- name: Run formatting commands
run: make format
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Format code and sort imports
branch: ${{ github.head_ref }}