Skip to content

Update tmp.yml

Update tmp.yml #97

Workflow file for this run

name: Black Formatter
on:
- push
- pull_request
jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Format code with black
run: |
pip install black
black $(git ls-files './src/*.py')
black $(git ls-files './tests/*.py')
- name: Commit changes
uses: EndBug/add-and-commit@v4
with:
author_name: ${{ github.actor }}
author_email: ${{ github.actor }}@users.noreply.github.com
message: "Auto-format code with black"
add: "."