brozzler/.github/workflows/python-formatting.yml
Gretchen Leigh Miller 65b0b5f50b
Makefile improvements + pre-commit hook (#340)
* Makefile improvements + pre-commit hook

* update make target in CI

* fix CI more

* .gitignore update

* couple more Makefile refinements

* make target-version explicit on ruff import sorting
2025-03-07 16:45:53 -08:00

31 lines
598 B
YAML

name: Python Formatting Check
on:
push:
branches:
- main
- master
pull_request:
branches:
- main
- master
jobs:
formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.8
uses: actions/setup-python@v5
with:
python-version: '3.8'
- name: Create virtual environment
run: python -m venv .venv
- name: Install ruff
run: |
./.venv/bin/pip install --upgrade pip
./.venv/bin/pip install ruff
- name: Run formatting check
run: make check-format