Skip to content

Integrate Black for code formatting and add CI check #2

Integrate Black for code formatting and add CI check

Integrate Black for code formatting and add CI check #2

name: Black Formatter Check
on:
pull_request:
jobs:
check_formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install poetry
run: pipx install poetry
- name: Set up Python 3.13
uses: actions/setup-python@v5
with:
python-version: '3.13'
cache: 'poetry'
- name: Install dependencies
run: poetry install --no-root --with dev # Install only dev dependencies for checking
- name: Run Black
run: poetry run black --check .