|
|
|
@ -3,7 +3,7 @@
|
|
|
|
|
# Othewrwise, Black is run and its changes are committed back to the incoming pull request.
|
|
|
|
|
# https://github.com/cclauss/autoblack
|
|
|
|
|
|
|
|
|
|
name: autoblack
|
|
|
|
|
name: fmt
|
|
|
|
|
on:
|
|
|
|
|
push:
|
|
|
|
|
branches: ["develop"]
|
|
|
|
@ -11,11 +11,11 @@ jobs:
|
|
|
|
|
build:
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
steps:
|
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
|
- name: Set up Python 3.7
|
|
|
|
|
uses: actions/setup-python@v1
|
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
|
- name: Set up Python 3.10
|
|
|
|
|
uses: actions/setup-python@v5
|
|
|
|
|
with:
|
|
|
|
|
python-version: 3.9
|
|
|
|
|
python-version: 3.10
|
|
|
|
|
- name: Install Black
|
|
|
|
|
run: pip install black
|
|
|
|
|
- name: Run black --check .
|
|
|
|
@ -30,3 +30,10 @@ jobs:
|
|
|
|
|
git checkout $GITHUB_HEAD_REF
|
|
|
|
|
git commit -am "fixup: Format Python code with Black"
|
|
|
|
|
git push origin HEAD:develop
|
|
|
|
|
|
|
|
|
|
- uses: isort/isort-action@v1
|
|
|
|
|
with:
|
|
|
|
|
requirement-files: "requirements.txt"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|