Merge pull request #670 from d7919/experimental/avoid_subprocess_in_p… #367
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: black | |
on: | |
push: | |
paths: | |
- '**.py' | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
black: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.x | |
- name: Install black | |
run: | | |
python -m pip install --upgrade pip | |
pip install black | |
- name: Version | |
run: | | |
python --version | |
black --version | |
- name: Run black | |
run: | | |
black ford setup.py test | |
- uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: "[skip ci] Apply black changes" |