y 2025 d2 #194
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: Run Black | |
| on: | |
| push: | |
| branches: [ master ] | |
| jobs: | |
| runsBlack: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-python@v1 | |
| with: | |
| python-version: 3.x | |
| - run: pip install black isort | |
| - run: isort . | |
| - run: black . | |
| - name: Create Pull Request | |
| uses: peter-evans/create-pull-request@v3 | |
| with: | |
| commit-message: format code with black | |
| title: Black Formatting | |
| body: format code with black | |
| branch: black-format |