Skip to content

Python Code Formatting Checks #135

Python Code Formatting Checks

Python Code Formatting Checks #135

Workflow file for this run

name: Python Code Formatting Checks
on: ["push", "pull_request", "workflow_dispatch"]
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dependencies
working-directory: python
env: { UV_SYSTEM_PYTHON: true }
run: |
pip install uv
uv pip install .[all] isort black
- name: Run isort check
working-directory: python
run: |
isort . --check --diff
- name: Run black check
working-directory: python
run: |
black . --check --diff