A GitHub action that runs black code formatter for Python.
name: Build
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
lfs: false
- name: Black Code Formatter
uses: tripactions/black-code-formatter@21.4b1
with:
args: ". --check -l 100 -t py37"
For a full list of possible args checkout the black docs.
Based on the original lgeiger/black-action.