Fix renaming in case a new section is needed #28
Workflow file for this run
This file contains 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: Formatting (black & isort) | |
on: | |
push: | |
paths: | |
- '**.py' | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
format: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.x | |
- name: Install ruff | |
run: | | |
python -m pip install --upgrade pip | |
pip install ruff | |
- name: Version | |
run: | | |
python --version | |
ruff --version | |
- name: Run ruff, sort imports | |
run: ruff check --select I . --fix | |
- name: Run ruff format | |
run: ruff format . | |
- uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: "[skip ci] Apply black/isort changes" |