Integrate Black for code formatting and add CI check #2
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 . |