Skip to content

transferred over old repo #5

transferred over old repo

transferred over old repo #5

name: Format python code with black
on:
pull_request:
branches:
- main
jobs:
format:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Format with black
uses: psf/black@stable
with:
options: "--verbose"
src: "."
version: "~= 22.0"
- name: Commit changes
uses: EndBug/add-and-commit@v9
with:
author_name: Black Robot
author_email: [email protected]
message: 'Committing black-format changes'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}