Merge pull request #5 from NFFT/python-code-format-patches #30
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: Format Python Code | |
| on: push | |
| jobs: | |
| python-code-format: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: actions/setup-python@v4 | |
| with: | |
| python-version: "3.12" | |
| architecture: "x64" | |
| - name: Display Python version | |
| run: python --version | |
| - name: Install packages | |
| run: pip install black isort | |
| - name: Formatter | |
| run: | | |
| black . | |
| isort . | |
| - name: Create Pull Request | |
| uses: peter-evans/create-pull-request@v3 | |
| with: | |
| commit-message: Auto code format | |
| title: Fixes by format action | |
| body: This is an auto-generated PR with fixes. | |
| labels: automated pr | |
| branch: python-code-format-patches |