Skip to content

Bump semver from 5.7.1 to 5.7.2 in /bancor_research/bancor_emulator/tests #742

Bump semver from 5.7.1 to 5.7.2 in /bancor_research/bancor_emulator/tests

Bump semver from 5.7.1 to 5.7.2 in /bancor_research/bancor_emulator/tests #742

Workflow file for this run

name: Lint
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install Black
run: pip install black
- name: Install Black Jupyter
run: pip install jupyter-black
- name: Run black --check bancor_research/bancor_simulator
run: black --check bancor_research/bancor_simulator
- name: If needed, commit black changes to the pull request
if: failure()
run: |
black bancor_research/bancor_simulator
git config --global user.name 'mikewcasale'
git remote set-url origin https://x-access-token:${{ secrets.GIT_TOKEN }}@github.com/$GITHUB_REPOSITORY
git checkout $GITHUB_HEAD_REF
git commit -am "fixup: Format Python code with Black"
git push